|
RIT VEXU Core API
|
#include <builtins.hpp>
Public Member Functions | |
| MotorDataRecord (std::string name, vex::motor &mot) | |
| 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 |
Defines a record that holds motor values
| VDP::MotorDataRecord::MotorDataRecord | ( | std::string | name, |
| vex::motor & | motor ) |
Creates a record that contains a Float of the motor position Float of the motor velocity Float of the motor tempurature Float of the motor voltage Float of the motor current
| name | the name of the record to create |
| mot | the motor to get data from |
|
overridevirtual |
sets the data that the Motor Parts hold
Implements VDP::Part.