RIT VEXU Core API
Loading...
Searching...
No Matches
VDP::PIDDataRecord Class Reference

#include <builtins.hpp>

Inheritance diagram for VDP::PIDDataRecord:
VDP::Record VDP::Part

Public Member Functions

 PIDDataRecord (std::string name, PID &pid)
 
void fetch () override
 
- Public Member Functions inherited from VDP::Record
 Record (std::string name)
 
 Record (std::string name, const std::vector< Part * > &parts)
 
 Record (std::string name, std::vector< PartPtr > parts)
 
 Record (std::string name, PacketReader &reader)
 
void set_fields (std::vector< PartPtr > fields)
 
void fetch () override
 
void read_data_from_message (PacketReader &reader) override
 
- Public Member Functions inherited from VDP::Part
 Part (std::string name)
 
std::string pretty_print () const
 
std::string pretty_print_data () const
 

Additional Inherited Members

- Protected Member Functions inherited from VDP::Record
void write_schema (PacketWriter &sofar) const override
 
void write_message (PacketWriter &sofar) const override
 

Detailed Description

Defines a record that holds pid values to be sent to the board

Constructor & Destructor Documentation

◆ PIDDataRecord()

VDP::PIDDataRecord::PIDDataRecord ( std::string name,
PID & pid )

Creates a record that contains a Float of the pid P value Float of the pid I value Float of the pid D value Float of the pid error Float of the pid output String of the pid type (linear or angular)

Parameters
namethe name of the record to create
pidthe pid to get data from

Member Function Documentation

◆ fetch()

void VDP::PIDDataRecord::fetch ( )
overridevirtual

sets the data that the PID Parts hold

sets the data that the PID Parts hold to be sent to the board

Implements VDP::Part.


The documentation for this class was generated from the following files: