mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-02 13:27:32 +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"
|
#include "traffic_info.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef TCAS
|
|
||||||
#include "tcas.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef USE_USB_SERIAL
|
#ifdef USE_USB_SERIAL
|
||||||
#include "usb_serial.h"
|
#include "usb_serial.h"
|
||||||
#endif
|
#endif
|
||||||
@@ -418,17 +414,6 @@ void periodic_task_ap( void ) {
|
|||||||
kill_throttle |= (t >= LOW_BATTERY_DELAY);
|
kill_throttle |= (t >= LOW_BATTERY_DELAY);
|
||||||
kill_throttle |= launch && (dist2_to_home > Square(KILL_MODE_DISTANCE));
|
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) {
|
switch(_4Hz) {
|
||||||
case 0:
|
case 0:
|
||||||
@@ -468,13 +453,6 @@ void periodic_task_ap( void ) {
|
|||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef TCAS
|
|
||||||
case 14:
|
|
||||||
/** tcas altitude control loop at 4Hz just before navigation task */
|
|
||||||
tcas_periodic_task_4Hz();
|
|
||||||
break;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* default: */
|
/* default: */
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -623,10 +601,6 @@ void init_ap( void ) {
|
|||||||
traffic_info_init();
|
traffic_info_init();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef TCAS
|
|
||||||
tcas_init();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user