@@ -105,7 +105,7 @@ int main(void)
105
105
int8_t x_gyro = 0 ;
106
106
int8_t y_gyro = 0 ;
107
107
int8_t z_gyro = 0 ;
108
- uint8_t lim_temps [NUM_LIMS ];
108
+ uint8_t lim_temps [NUM_THERM_TOTAL ];
109
109
uint8_t error_code_1 = 0 ;
110
110
uint8_t error_code_2 = 0 ;
111
111
@@ -129,8 +129,12 @@ int main(void)
129
129
130
130
//Pack CAN messages
131
131
CAN_set_segment (& tx_frame , PRESSURE , pressure );
132
- CAN_set_segment (& tx_frame , LIM_ONE_TEMP , lim_temps [0 ]);
133
- CAN_set_segment (& tx_frame , LIM_TWO_TEMP , lim_temps [1 ]);
132
+ CAN_set_segment (& tx_frame , LIM_ONE_TEMP_ONE , lim_temps [0 ]);
133
+ CAN_set_segment (& tx_frame , LIM_ONE_TEMP_TWO , lim_temps [1 ]);
134
+ CAN_set_segment (& tx_frame , LIM_ONE_TEMP_THREE , lim_temps [2 ]);
135
+ CAN_set_segment (& tx_frame , LIM_TWO_TEMP_ONE , lim_temps [3 ]);
136
+ CAN_set_segment (& tx_frame , LIM_TWO_TEMP_TWO , lim_temps [4 ]);
137
+ CAN_set_segment (& tx_frame , LIM_TWO_TEMP_THREE , lim_temps [5 ]);
134
138
CAN_set_segment (& tx_frame , SENSORS_ERROR_CODE_1 , error_code_1 );
135
139
136
140
CAN_set_segment (& imu_frame , X_ACCEL , x_accel );
0 commit comments