added feedback
This commit is contained in:
@ -80,8 +80,8 @@ void can_sendloop(){
|
||||
data[3] = current_measurements_adc_val.lvms_v & 0xFF;
|
||||
data[4] = current_measurements_adc_val.asms_v >> 8;
|
||||
data[5] = current_measurements_adc_val.asms_v & 0xFF;
|
||||
data[6] = current_measurements_adc_val.epsc_precharge >> 8; // not used (transmits 313)
|
||||
data[7] = current_measurements_adc_val.epsc_precharge & 0xFF; // not used (transmits 313)
|
||||
data[6] = 0x01; // not used (transmits 313)
|
||||
data[7] = 0x39; // not used (transmits 313)
|
||||
ftcan_transmit(CUR_CHANNELS_4_ID, data, 8);
|
||||
break;
|
||||
|
||||
|
||||
@ -123,6 +123,7 @@ int main(void)
|
||||
ChannelControl_init();
|
||||
can_init(&hcan);
|
||||
current_monitor_init(&hadc1, &hadc2, &htim6);
|
||||
uint32_t lasttick = HAL_GetTick(); // time in ms since start
|
||||
|
||||
// begin start-up animation
|
||||
HAL_GPIO_WritePin(LED1_GPIO_Port, LED1_Pin, GPIO_PIN_SET);
|
||||
@ -150,7 +151,6 @@ int main(void)
|
||||
|
||||
HAL_GPIO_WritePin(LED4_GPIO_Port, LED4_Pin, GPIO_PIN_SET); // indicates running STM
|
||||
|
||||
uint32_t lasttick = HAL_GetTick(); // time in ms since start
|
||||
|
||||
inhibit_SDC = 0; // allow SDC to be closed
|
||||
|
||||
|
||||
Reference in New Issue
Block a user