30 #ifndef MISSION_COMMON_H
31 #define MISSION_COMMON_H
82 #define MISSION_PATH_NB 5
108 #ifndef MISSION_ELEMENT_NB
109 #define MISSION_ELEMENT_NB 20
184 #endif // MISSION_COMMON_H
int mission_parse_CIRCLE_LLA(void)
int mission_parse_NEXT_MISSION(void)
int mission_parse_SEGMENT_LLA(void)
int mission_parse_SURVEY_LLA(void)
int mission_parse_GOTO_WP(void)
Parsing functions called when a mission message is received.
union _mission_segment::@19 to
vector in East North Up coordinates Units: meters
bool_t mission_point_of_lla(struct EnuCoor_f *point, struct LlaCoor_i *lla)
Get the ENU component of LLA mission point This function is firmware specific.
union _mission_circle::@17 center
remove all elements and add the new one
float duration
time to spend in the element (<= 0 to disable)
add before the current element
vector in Latitude, Longitude and Altitude
int mission_parse_PATH(void)
void mission_init(void)
Init mission structure.
int mission_parse_PATH_LLA(void)
void mission_status_report(void)
Report mission status.
int mission_parse_GOTO_WP_LLA(void)
Paparazzi floating point math for geodetic calculations.
struct _mission_element * mission_get(void)
Get current mission element.
union _mission_element::@21 element
float element_time
time in second spend in the current element
#define MISSION_ELEMENT_NB
Max number of elements in the tasks' list can be redefined.
Paparazzi fixed point math for geodetic calculations.
union _mission_path::@20 path
uint8_t insert_idx
inserstion index
bool_t mission_element_convert(struct _mission_element *el)
Convert mission element's points format if needed.
union _mission_segment::@18 from
bool_t mission_insert(enum MissionInsertMode insert, struct _mission_element *element)
Insert a mission element according to the insertion mode.
vector in East North Up coordinates
int mission_parse_END_MISSION(void)
uint8_t current_idx
current mission element index
int mission_parse_CIRCLE(void)
int mission_parse_GOTO_MISSION(void)
int mission_run(void)
Run mission.
int mission_parse_SURVEY(void)
union _mission_wp::@16 wp
struct _mission_element elements[MISSION_ELEMENT_NB]
int mission_parse_SEGMENT(void)