mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-05 23:49:00 +08:00
removed infrared_init and infrared_update from main_ap as these are called from the used infrared module
This commit is contained in:
@@ -39,9 +39,6 @@
|
|||||||
#include "firmwares/fixedwing/stabilization/stabilization_attitude.h"
|
#include "firmwares/fixedwing/stabilization/stabilization_attitude.h"
|
||||||
#include "firmwares/fixedwing/guidance/guidance_v.h"
|
#include "firmwares/fixedwing/guidance/guidance_v.h"
|
||||||
#include "subsystems/gps.h"
|
#include "subsystems/gps.h"
|
||||||
#ifdef USE_INFRARED
|
|
||||||
#include "subsystems/sensors/infrared.h"
|
|
||||||
#endif
|
|
||||||
#include "gyro.h"
|
#include "gyro.h"
|
||||||
#include "ap_downlink.h"
|
#include "ap_downlink.h"
|
||||||
#include "subsystems/nav.h"
|
#include "subsystems/nav.h"
|
||||||
@@ -397,7 +394,6 @@ static inline void attitude_loop( void ) {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef USE_INFRARED
|
#ifdef USE_INFRARED
|
||||||
infrared_update();
|
|
||||||
ahrs_update_infrared();
|
ahrs_update_infrared();
|
||||||
#endif /* USE_INFRARED */
|
#endif /* USE_INFRARED */
|
||||||
h_ctl_attitude_loop(); /* Set h_ctl_aileron_setpoint & h_ctl_elevator_setpoint */
|
h_ctl_attitude_loop(); /* Set h_ctl_aileron_setpoint & h_ctl_elevator_setpoint */
|
||||||
@@ -540,9 +536,6 @@ void init_ap( void ) {
|
|||||||
#endif /* SINGLE_MCU */
|
#endif /* SINGLE_MCU */
|
||||||
|
|
||||||
/************* Sensors initialization ***************/
|
/************* Sensors initialization ***************/
|
||||||
#ifdef USE_INFRARED
|
|
||||||
infrared_init();
|
|
||||||
#endif
|
|
||||||
#ifdef USE_GYRO
|
#ifdef USE_GYRO
|
||||||
gyro_init();
|
gyro_init();
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user