コード例 #1
0
ファイル: main_ap.c プロジェクト: WenFly123/openPPZ
void handle_periodic_tasks_ap(void) 
{

  if (sys_time_check_and_ack_timer(sensors_tid))
    sensors_task();//imu数据读取

  if (sys_time_check_and_ack_timer(navigation_tid))
    navigation_task();//估算期望的航线,故障保护

#ifndef AHRS_TRIGGERED_ATTITUDE_LOOP
  if (sys_time_check_and_ack_timer(attitude_tid))
    attitude_loop();//姿态循环
#endif

  if (sys_time_check_and_ack_timer(modules_tid))
    modules_periodic_task();//没有该函数说明

  if (sys_time_check_and_ack_timer(monitor_tid))
    monitor_task();//监听

  if (sys_time_check_and_ack_timer(telemetry_tid)) 
  {
    reporting_task();//汇报
    LED_PERIODIC();
  }

}
コード例 #2
0
ファイル: main_ap.c プロジェクト: hulatang/paparazzi
void handle_periodic_tasks_ap(void) {

  if (sys_time_check_and_ack_timer(sensors_tid))
    sensors_task();

  if (sys_time_check_and_ack_timer(navigation_tid))
    navigation_task();

#ifndef AHRS_TRIGGERED_ATTITUDE_LOOP
  if (sys_time_check_and_ack_timer(attitude_tid))
    attitude_loop();
#endif

  if (sys_time_check_and_ack_timer(modules_tid))
    modules_periodic_task();

  if (sys_time_check_and_ack_timer(monitor_tid))
    monitor_task();

  if (sys_time_check_and_ack_timer(telemetry_tid)) {
    reporting_task();
    LED_PERIODIC();
  }

}
コード例 #3
0
ファイル: sim_ap.c プロジェクト: CheBuzz/paparazzi
value sim_periodic_task(value unit) {
  sensors_task();
  attitude_loop();
  reporting_task();
  modules_periodic_task();
  periodic_task_fbw();
  event_task_ap();
  event_task_fbw();
  return unit;
}
コード例 #4
0
ファイル: sim_ap.c プロジェクト: paparazzi/paparazzi
value sim_periodic_task(value unit)
{
  sensors_task();
#if USE_GENERATED_AUTOPILOT
  autopilot_periodic();
#else
  attitude_loop();
#endif
  reporting_task();
  modules_periodic_task();
  periodic_task_fbw();
  electrical_periodic();
  event_task_ap();
  event_task_fbw();
  return unit;
}
コード例 #5
0
ファイル: main_ap.c プロジェクト: paparazzi/paparazzi
void handle_periodic_tasks_ap(void)
{

  if (sys_time_check_and_ack_timer(sensors_tid)) {
    sensors_task();
  }

#if USE_BARO_BOARD
  if (sys_time_check_and_ack_timer(baro_tid)) {
    baro_periodic();
  }
#endif

#if USE_GENERATED_AUTOPILOT
  if (sys_time_check_and_ack_timer(attitude_tid)) {
    autopilot_periodic();
  }
#else
  // static autopilot
  if (sys_time_check_and_ack_timer(navigation_tid)) {
    navigation_task();
  }

#ifndef AHRS_TRIGGERED_ATTITUDE_LOOP
  if (sys_time_check_and_ack_timer(attitude_tid)) {
    attitude_loop();
  }
#endif

#endif

  if (sys_time_check_and_ack_timer(modules_tid)) {
    modules_periodic_task();
  }

  if (sys_time_check_and_ack_timer(monitor_tid)) {
    monitor_task();
  }

  if (sys_time_check_and_ack_timer(telemetry_tid)) {
    reporting_task();
    LED_PERIODIC();
  }

}