Example #1
0
void StateMenu2::update()
{
    background.update();

    if (screen == 0)        mm_update();
    else if (screen == 1)   om_update();
    else if (screen == 2)   ls_update();
}
Example #2
0
// ********************************* TASKS ********************************** //
void task_every_row(void) 
{
  adcx_convert_all();
  adci_convert_all();
  qdc_tmr0_cap01_angle_update();
  qdc_tmr0_cap01_rate_update();
  qdc_tmr0_cap23_angle_update();
  qdc_tmr0_cap23_rate_update();
  ae_update();
  can_rx_dispatch_all();  // Dispatch all incoming frames in rx buffer
  hb_beat(); 
  mcu_led_update();
  ls_update();
  dn_safety();
  error_update();

  can_tx1();    // Send out frames on CAN1

  adcx_conversion_wait();
  
  mc_compliant_control();
  
}