43 #ifndef MAVLINK_WAYPOINT_HANDLER__
44 #define MAVLINK_WAYPOINT_HANDLER__
50 #include "mavlink_stream.h"
52 #include "position_estimation.h"
54 #include "mavlink_message_handler.h"
55 #include "mavlink_communication.h"
59 #define MAX_WAYPOINTS 10
177 #endif // MAVLINK_WAYPOINT_HANDLER__
const ahrs_t * ahrs
The pointer to the attitude estimation structure.
Definition: mavlink_waypoint_handler.h:109
The MAVLink waypoint structure.
Definition: mavlink_waypoint_handler.h:68
Structure containing the Attitude and Heading Reference System.
Definition: ahrs.h:58
int8_t current_waypoint_count
The number of the current waypoint.
Definition: mavlink_waypoint_handler.h:88
uint8_t autocontinue
Flag to tell whether the vehicle should auto continue to the next waypoint once it reaches the curren...
Definition: mavlink_waypoint_handler.h:73
uint8_t current
Flag to tell whether the waypoint is the current one or not.
Definition: mavlink_waypoint_handler.h:72
uint16_t command
The MAV_CMD_NAV id of the waypoint.
Definition: mavlink_waypoint_handler.h:71
local_coordinates_t waypoint_hold_coordinates
The coordinates of the waypoint in position hold mode (MAV_MODE_GUIDED_ARMED)
Definition: mavlink_waypoint_handler.h:91
const mavlink_stream_t * mavlink_stream
Pointer to MAVLink stream.
Definition: mavlink_waypoint_handler.h:112
bool waypoint_sending
Flag to tell whether waypoint are being sent.
Definition: mavlink_waypoint_handler.h:97
state_t * state
The pointer to the state structure.
Definition: mavlink_waypoint_handler.h:110
uint32_t timeout_max_waypoint
The max waiting time for communication.
Definition: mavlink_waypoint_handler.h:106
float param4
Parameter depending on the MAV_CMD_NAV id.
Definition: mavlink_waypoint_handler.h:77
float dist2wp_sqr
The square of the distance to the waypoint.
Definition: mavlink_waypoint_handler.h:93
uint16_t num_waypoint_onboard
The number of waypoint onboard.
Definition: mavlink_waypoint_handler.h:103
bool hold_waypoint_set
Flag to tell if the hold position waypoint is set.
Definition: mavlink_waypoint_handler.h:95
uint8_t frame
The reference frame of the waypoint.
Definition: mavlink_waypoint_handler.h:70
position_estimation_t * position_estimation
The pointer to the position estimation structure.
Definition: mavlink_waypoint_handler.h:108
uint16_t number_of_waypoints
The total number of waypoints.
Definition: mavlink_waypoint_handler.h:87
local_coordinates_t waypoint_critical_coordinates
The coordinates of the waypoint in critical state.
Definition: mavlink_waypoint_handler.h:92
local_coordinates_t waypoint_coordinates
The coordinates of the waypoint in GPS navigation mode (MAV_MODE_AUTO_ARMED)
Definition: mavlink_waypoint_handler.h:90
double z
The value on the z axis (depends on the reference frame)
Definition: mavlink_waypoint_handler.h:80
uint32_t start_timeout
The start time for the waypoint timeout.
Definition: mavlink_waypoint_handler.h:105
The state structure.
Definition: state.h:79
float param3
Parameter depending on the MAV_CMD_NAV id.
Definition: mavlink_waypoint_handler.h:76
bool waypoint_receiving
Flag to tell whether waypoint are being received or not.
Definition: mavlink_waypoint_handler.h:98
Definition: mavlink_waypoint_handler.h:83
Global position structure.
Definition: coord_conventions.h:60
int32_t sending_waypoint_num
The ID number of the sending waypoint.
Definition: mavlink_waypoint_handler.h:100
waypoint_struct_t current_waypoint
The structure of the current waypoint.
Definition: mavlink_waypoint_handler.h:86
float param2
Parameter depending on the MAV_CMD_NAV id.
Definition: mavlink_waypoint_handler.h:75
double x
The value on the x axis (depends on the reference frame)
Definition: mavlink_waypoint_handler.h:78
Main MAVLink Communication structure.
Definition: mavlink_communication.h:95
float param1
Parameter depending on the MAV_CMD_NAV id.
Definition: mavlink_waypoint_handler.h:74
Local coordinates structure.
Definition: coord_conventions.h:73
Main structure for the MAVLink stream module.
Definition: mavlink_stream.h:87
The position estimator structure.
Definition: position_estimation.h:79
mavlink_communication_t * mavlink_communication
The pointer to the MAVLink communication structure.
Definition: mavlink_waypoint_handler.h:111
double y
The value on the y axis (depends on the reference frame)
Definition: mavlink_waypoint_handler.h:79
int32_t waypoint_request_number
The ID number of the requested waypoint.
Definition: mavlink_waypoint_handler.h:101