IQ.Pilot Release Commit @ 2b39aa6
This commit is contained in:
@@ -9,8 +9,10 @@ static int get_health_pkt(void *dat) {
|
||||
struct health_t * health = (struct health_t*)dat;
|
||||
|
||||
health->uptime_pkt = uptime_cnt;
|
||||
health->voltage_pkt = current_board->read_voltage_mV();
|
||||
health->current_pkt = current_board->read_current_mA();
|
||||
// cached values sampled in thread context (see tick_sample_poll in main.c);
|
||||
// reading the ADC here would busy-wait in interrupt context
|
||||
health->voltage_pkt = voltage_mV;
|
||||
health->current_pkt = current_mA;
|
||||
|
||||
health->ignition_line_pkt = (uint8_t)(harness_check_ignition());
|
||||
health->ignition_can_pkt = ignition_can;
|
||||
|
||||
Reference in New Issue
Block a user