mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-11 07:49:41 +08:00
494e3f3ad9
When adding a test node to a makefile section, with required compilation flags, include and other options, all the files (not arch dependent files) can be compiled with a TAP compatible program, included in the standard tests of the CI servers. Not all module's XML files are converted, but a large part of the most important parts are already covered. More will be added later. The number of tested airframes (full compilation of all targets) have been reduced to speed the CI compile time but still covers the relevant architecture and boards. The main benefit is that the overall coverage is already better than before as previous test aircraft were compiling more or less the same part of the airborne code, while this new mechanism is more efficient to test modules not included in any config.
64 lines
1.7 KiB
C
64 lines
1.7 KiB
C
#ifndef GENERATED_FLIGHT_PLAN_H
|
|
#define GENERATED_FLIGHT_PLAN_H
|
|
|
|
#include "std.h"
|
|
#include "generated/modules.h"
|
|
#include "subsystems/abi.h"
|
|
#include "autopilot.h"
|
|
|
|
#define NAV_DEFAULT_ALT 260 /* nominal altitude of the flight plan */
|
|
#define NAV_UTM_EAST0 360285
|
|
#define NAV_UTM_NORTH0 4813595
|
|
#define NAV_UTM_ZONE0 31
|
|
#define NAV_LAT0 434622300 /* 1e7deg */
|
|
#define NAV_LON0 12728900 /* 1e7deg */
|
|
#define NAV_ALT0 185000 /* mm above msl */
|
|
#define NAV_MSL0 51850 /* mm, EGM96 geoid-height (msl) over ellipsoid */
|
|
#define QFU 0.0
|
|
#define WP_dummy 0
|
|
#define WP_HOME 1
|
|
#define WAYPOINTS_UTM { \
|
|
{42.0, 42.0, 260},\
|
|
{0.0, 0.0, 260},\
|
|
};
|
|
#define WAYPOINTS_ENU { \
|
|
{41.13, 42.87, 75.00}, /* ENU in meters */ \
|
|
{-0.00, -0.00, 75.00}, /* ENU in meters */ \
|
|
};
|
|
#define WAYPOINTS_LLA { \
|
|
{.lat=434626158, .lon=12733981, .alt=260000}, /* 1e7deg, 1e7deg, mm (above NAV_MSL0, local msl=51.85m) */ \
|
|
{.lat=434622299, .lon=12728900, .alt=260000}, /* 1e7deg, 1e7deg, mm (above NAV_MSL0, local msl=51.85m) */ \
|
|
};
|
|
#define WAYPOINTS_LLA_WGS84 { \
|
|
{.lat=434626158, .lon=12733981, .alt=311850}, /* 1e7deg, 1e7deg, mm (above WGS84 ref ellipsoid) */ \
|
|
{.lat=434622299, .lon=12728900, .alt=311850}, /* 1e7deg, 1e7deg, mm (above WGS84 ref ellipsoid) */ \
|
|
};
|
|
#define WAYPOINTS_GLOBAL { \
|
|
FALSE, \
|
|
FALSE, \
|
|
};
|
|
#define NB_WAYPOINT 2
|
|
#define FP_BLOCKS { \
|
|
"Wait GPS" , \
|
|
"HOME" , \
|
|
}
|
|
#define NB_BLOCK 2
|
|
|
|
#define GROUND_ALT 185.
|
|
#define GROUND_ALT_CM 18500
|
|
#define SECURITY_HEIGHT 25.
|
|
#define SECURITY_ALT 210.
|
|
#define HOME_MODE_HEIGHT 25.
|
|
#define MAX_DIST_FROM_HOME 1500.
|
|
|
|
#ifdef NAV_C
|
|
|
|
static inline void auto_nav_init(void) {}
|
|
|
|
|
|
static inline void auto_nav(void) {}
|
|
|
|
#endif
|
|
|
|
#endif // GENERATED_FLIGHT_PLAN_H
|