mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-08-17 09:02:06 +08:00
[rotorcraft] make sure global waypoints are localized (#1966)
Stopgap measure to fix #1961 This is actually only needed if USE_INS_NAV_INIT is used (the default).
This commit is contained in:
committed by
Gautier Hattenberger
parent
8a1b326104
commit
0989b2cb37
@@ -83,6 +83,10 @@ PRINT_CONFIG_MSG_VALUE("USE_BARO_BOARD is TRUE, reading onboard baro: ", BARO_BO
|
||||
#include "generated/modules.h"
|
||||
#include "subsystems/abi.h"
|
||||
|
||||
// needed for stop-gap measure waypoints_localize_all()
|
||||
#include "subsystems/navigation/waypoints.h"
|
||||
|
||||
|
||||
/* if PRINT_CONFIG is defined, print some config options */
|
||||
PRINT_CONFIG_VAR(PERIODIC_FREQUENCY)
|
||||
|
||||
@@ -197,6 +201,13 @@ STATIC_INLINE void main_init(void)
|
||||
|
||||
modules_init();
|
||||
|
||||
/* temporary hack:
|
||||
* Since INS is now a module, LTP_DEF is not yet initialized when autopilot_init is called
|
||||
* This led to the problem that global waypoints were not "localized",
|
||||
* so as a stop-gap measure we localize them all (again) here..
|
||||
*/
|
||||
waypoints_localize_all();
|
||||
|
||||
settings_init();
|
||||
|
||||
mcu_int_enable();
|
||||
|
||||
Reference in New Issue
Block a user