#pragma once
#include <wpi/SymbolExports.h>
#include <wpi/struct/Struct.h>
#include "frc/system/plant/DCMotor.h"
template <>
struct WPILIB_DLLEXPORT wpi::Struct<frc::DCMotor> {
static constexpr std::string_view GetTypeName() { return "DCMotor"; }
static constexpr size_t GetSize() { return 40; }
static constexpr std::string_view GetSchema() {
return "double nominal_voltage;double stall_torque;double "
"stall_current;double "
"free_current;double free_speed";
}
static frc::DCMotor Unpack(std::span<const uint8_t> data);
static void Pack(std::span<uint8_t> data, const frc::DCMotor& value);
};
static_assert(wpi::StructSerializable<frc::DCMotor>);