 |
Galaxis Codebase
1.0.0
Team Galaxis software stack for the Carolo Cup 2023 - ROS2 based software
|
Go to the documentation of this file. 1 #ifndef FIRMWARE_SETTINGS_HPP_
2 #define FIRMWARE_SETTINGS_HPP_
10 float motor_current_max;
14 float max_brake_current;
18 uint16_t manual_override_difference;
21 uint8_t use_rc_to_steer;
30 float motor_current_max_rc;
39 #pragma GCC diagnostic push
40 #pragma GCC diagnostic ignored "-Wunused-variable"
65 #pragma GCC diagnostic pop
char wrong_offset_motor_current_max[(offsetof(FirmwareSetup_t, motor_current_max)==0) ? 1 :-1]
char wrong_offset_max_servo_offset[(offsetof(FirmwareSetup_t, max_servo_offset)==12) ? 1 :-1]
char wrong_offset_motor_current_max_rc[(offsetof(FirmwareSetup_t, motor_current_max_rc)==12+4+2+1+1+4) ? 1 :-1]
char wrong_offset_rc_use_erpm[(offsetof(FirmwareSetup_t, rc_use_erpm)==12+4+2+1) ? 1 :-1]
struct __attribute__((packed, aligned(1)))
char wrong_offset_erpm_max_rc[(offsetof(FirmwareSetup_t, erpm_max_rc)==12+4+2+1+1+4+4) ? 1 :-1]
static union @0 FirmwareSetupTest
char wrong_sizeof_packet[(sizeof(FirmwareSetup_t)==32) ? 1 :-1]
char wrong_offset_use_rc_to_steer[(offsetof(FirmwareSetup_t, use_rc_to_steer)==12+4+2) ? 1 :-1]
char wrong_offset_manual_override_difference[(offsetof(FirmwareSetup_t, manual_override_difference)==12+4) ? 1 :-1]
char wrong_offset_servo_offset[(offsetof(FirmwareSetup_t, servo_offset)==12+4+2+1+1) ? 1 :-1]
char wrong_offset_erpm_max[(offsetof(FirmwareSetup_t, erpm_max)==4) ? 1 :-1]
char wrong_offset_max_brake_current[(offsetof(FirmwareSetup_t, max_brake_current)==4+4) ? 1 :-1]
const uint8_t rc_use_erpm