5#include "redux/sensors/canandgyro/CanandgyroFaults.h"
6#include "redux/sensors/canandgyro/CanandgyroData.h"
7#include "redux/sensors/canandgyro/CanandgyroStatus.h"
8#include "wpi/struct/Struct.h"
17 return "CanandgyroFaults";
20 static constexpr size_t GetSize() {
return 1; }
26 "bool can_id_conflict:1;"
27 "bool can_general_error:1;"
28 "bool out_of_temperature_range:1;"
29 "bool hardware_fault:1;"
31 "bool angular_velocity_saturation:1;"
32 "bool acceleration_saturation:1;"
40 static ::redux::sensors::canandgyro::CanandgyroFaults
Unpack(std::span<const uint8_t> data);
45 static void Pack(std::span<uint8_t> data,
46 const ::redux::sensors::canandgyro::CanandgyroFaults& value);
54 return "CanandgyroStatus";
57 static constexpr size_t GetSize() {
return 10; }
61 "CanandgyroFaults active_faults;"
62 "CanandgyroFaults sticky_faults;"
71 static ::redux::sensors::canandgyro::CanandgyroStatus
Unpack(std::span<const uint8_t> data);
76 static void Pack(std::span<uint8_t> data,
77 const ::redux::sensors::canandgyro::CanandgyroStatus& value);
82 std::invocable<std::string_view, std::string_view>
auto fn) {
83 wpi::ForEachStructSchema<::redux::sensors::canandgyro::CanandgyroFaults>(fn);
92 return "CanandgyroAngularVelocity";
95 static constexpr size_t GetSize() {
return 24; }
109 static ::redux::sensors::canandgyro::AngularVelocity
Unpack(std::span<const uint8_t> data);
114 static void Pack(std::span<uint8_t> data,
115 const ::redux::sensors::canandgyro::AngularVelocity& value);
123 return "CanandgyroAcceleration";
126 static constexpr size_t GetSize() {
return 24; }
140 static ::redux::sensors::canandgyro::Acceleration
Unpack(std::span<const uint8_t> data);
145 static void Pack(std::span<uint8_t> data,
146 const ::redux::sensors::canandgyro::Acceleration& value);
151static_assert(wpi::StructSerializable<::redux::sensors::canandgyro::AngularVelocity>);
152static_assert(wpi::StructSerializable<::redux::sensors::canandgyro::Acceleration>);
153static_assert(wpi::StructSerializable<::redux::sensors::canandgyro::CanandgyroStatus>);
154static_assert(wpi::StructSerializable<::redux::sensors::canandgyro::CanandgyroFaults>);
155static_assert(wpi::HasNestedStruct<::redux::sensors::canandgyro::CanandgyroStatus>);
Definition: CanandgyroData.h:74
Definition: CanandgyroData.h:17
Definition: CanandgyroFaults.h:13
Definition: CanandgyroStatus.h:13
static constexpr std::string_view GetSchema()
Definition: CanandgyroStruct.h:128
static constexpr size_t GetSize()
Definition: CanandgyroStruct.h:126
static constexpr std::string_view GetTypeName()
Definition: CanandgyroStruct.h:122
static void Pack(std::span< uint8_t > data, const ::redux::sensors::canandgyro::Acceleration &value)
::redux::sensors::canandgyro::Acceleration Unpack(std::span< const uint8_t > data)
static constexpr std::string_view GetSchema()
Definition: CanandgyroStruct.h:97
static void Pack(std::span< uint8_t > data, const ::redux::sensors::canandgyro::AngularVelocity &value)
::redux::sensors::canandgyro::AngularVelocity Unpack(std::span< const uint8_t > data)
static constexpr std::string_view GetTypeName()
Definition: CanandgyroStruct.h:91
static constexpr size_t GetSize()
Definition: CanandgyroStruct.h:95
static constexpr std::string_view GetTypeName()
Definition: CanandgyroStruct.h:16
static constexpr size_t GetSize()
Definition: CanandgyroStruct.h:20
::redux::sensors::canandgyro::CanandgyroFaults Unpack(std::span< const uint8_t > data)
static constexpr std::string_view GetSchema()
Definition: CanandgyroStruct.h:23
static void Pack(std::span< uint8_t > data, const ::redux::sensors::canandgyro::CanandgyroFaults &value)
static constexpr size_t GetSize()
Definition: CanandgyroStruct.h:57
static constexpr std::string_view GetTypeName()
Definition: CanandgyroStruct.h:53
static void Pack(std::span< uint8_t > data, const ::redux::sensors::canandgyro::CanandgyroStatus &value)
::redux::sensors::canandgyro::CanandgyroStatus Unpack(std::span< const uint8_t > data)
static void ForEachNested(std::invocable< std::string_view, std::string_view > auto fn)
Definition: CanandgyroStruct.h:81
static constexpr std::string_view GetSchema()
Definition: CanandgyroStruct.h:59