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)
union _mission_wp::@282 wp
int mission_parse_NEXT_MISSION(void)
int mission_parse_SEGMENT_LLA(void)
int mission_parse_SURVEY_LLA(void)
bool mission_element_convert(struct _mission_element *el)
Convert mission element's points format if needed.
int mission_parse_GOTO_WP(void)
Parsing functions called when a mission message is received.
union _mission_circle::@283 center
union _mission_segment::@285 to
vector in East North Up coordinates Units: meters
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
union _mission_path::@286 path
int mission_parse_PATH(void)
void mission_init(void)
Init mission structure.
bool mission_insert(enum MissionInsertMode insert, struct _mission_element *element)
Insert a mission element according to the insertion mode.
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.
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.
union _mission_element::@287 element
Paparazzi fixed point math for geodetic calculations.
uint8_t insert_idx
inserstion index
vector in East North Up coordinates
union _mission_segment::@284 from
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)
struct _mission_element elements[MISSION_ELEMENT_NB]
bool 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.
int mission_parse_SEGMENT(void)