14 static constexpr std::string_view
GetTypeName() {
return "DCMotor"; }
15 static constexpr size_t GetSize() {
return 40; }
17 return "double nominal_voltage;double stall_torque;double "
18 "stall_current;double "
19 "free_current;double free_speed";
#define WPILIB_DLLEXPORT
Definition SymbolExports.h:36
Holds the constants for a DC motor.
Definition DCMotor.h:20
Specifies that a type is capable of raw struct serialization and deserialization.
Definition Struct.h:69
Foonathan namespace.
Definition ntcore_cpp.h:26
static constexpr std::string_view GetTypeName()
Definition DCMotorStruct.h:14
static constexpr size_t GetSize()
Definition DCMotorStruct.h:15
static constexpr std::string_view GetSchema()
Definition DCMotorStruct.h:16
static void Pack(std::span< uint8_t > data, const frc::DCMotor &value)
static frc::DCMotor Unpack(std::span< const uint8_t > data)
Struct serialization template.
Definition Struct.h:39