mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-01 21:07:40 +08:00
forgot to remove tcas code from main_ap (execpt for CallTcas macro called by nav task)
This commit is contained in:
@@ -83,10 +83,6 @@
|
||||
#include "traffic_info.h"
|
||||
#endif
|
||||
|
||||
#ifdef TCAS
|
||||
#include "tcas.h"
|
||||
#endif
|
||||
|
||||
#ifdef USE_USB_SERIAL
|
||||
#include "usb_serial.h"
|
||||
#endif
|
||||
@@ -418,17 +414,6 @@ void periodic_task_ap( void ) {
|
||||
kill_throttle |= (t >= LOW_BATTERY_DELAY);
|
||||
kill_throttle |= launch && (dist2_to_home > Square(KILL_MODE_DISTANCE));
|
||||
}
|
||||
switch (_1Hz) {
|
||||
|
||||
#ifdef TCAS
|
||||
case 6:
|
||||
/** conflicts monitoring at 1Hz */
|
||||
tcas_periodic_task_1Hz();
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
switch(_4Hz) {
|
||||
case 0:
|
||||
@@ -468,13 +453,6 @@ void periodic_task_ap( void ) {
|
||||
break;
|
||||
#endif
|
||||
|
||||
#ifdef TCAS
|
||||
case 14:
|
||||
/** tcas altitude control loop at 4Hz just before navigation task */
|
||||
tcas_periodic_task_4Hz();
|
||||
break;
|
||||
#endif
|
||||
|
||||
/* default: */
|
||||
}
|
||||
|
||||
@@ -623,10 +601,6 @@ void init_ap( void ) {
|
||||
traffic_info_init();
|
||||
#endif
|
||||
|
||||
#ifdef TCAS
|
||||
tcas_init();
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user