@@ -107,7 +107,7 @@ int main(void)
107107 int8_t x_gyro = 0 ;
108108 int8_t y_gyro = 0 ;
109109 int8_t z_gyro = 0 ;
110- uint8_t lim_temps [NUM_LIMS ];
110+ uint8_t lim_temps [NUM_THERM_TOTAL ];
111111 uint8_t error_code_1 = 0 ;
112112 uint8_t error_code_2 = 0 ;
113113
@@ -131,8 +131,12 @@ int main(void)
131131
132132 //Pack CAN messages
133133 CAN_set_segment (& tx_frame , PRESSURE , pressure );
134- CAN_set_segment (& tx_frame , LIM_ONE_TEMP , lim_temps [0 ]);
135- CAN_set_segment (& tx_frame , LIM_TWO_TEMP , lim_temps [1 ]);
134+ CAN_set_segment (& tx_frame , LIM_ONE_TEMP_ONE , lim_temps [0 ]);
135+ CAN_set_segment (& tx_frame , LIM_ONE_TEMP_TWO , lim_temps [1 ]);
136+ CAN_set_segment (& tx_frame , LIM_ONE_TEMP_THREE , lim_temps [2 ]);
137+ CAN_set_segment (& tx_frame , LIM_TWO_TEMP_ONE , lim_temps [3 ]);
138+ CAN_set_segment (& tx_frame , LIM_TWO_TEMP_TWO , lim_temps [4 ]);
139+ CAN_set_segment (& tx_frame , LIM_TWO_TEMP_THREE , lim_temps [5 ]);
136140 CAN_set_segment (& tx_frame , SENSORS_ERROR_CODE_1 , error_code_1 );
137141
138142 CAN_set_segment (& imu_frame , X_ACCEL , x_accel );
0 commit comments