27 mavlink_rally_point_t packet;
28 mavlink_msg_rally_point_decode(msg, &packet);
32 send_text(MAV_SEVERITY_WARNING,
"Bad rally point ID");
37 send_text(MAV_SEVERITY_WARNING,
"Bad rally point count");
47 rally_point.
lat = packet.lat;
48 rally_point.
lng = packet.lng;
49 rally_point.
alt = packet.alt;
51 rally_point.
land_dir = packet.land_dir;
52 rally_point.
flags = packet.flags;
55 send_text(MAV_SEVERITY_CRITICAL,
"Error setting rally point");
66 mavlink_rally_fetch_point_t packet;
67 mavlink_msg_rally_fetch_point_decode(msg, &packet);
70 send_text(MAV_SEVERITY_WARNING,
"Bad rally point ID");
76 send_text(MAV_SEVERITY_WARNING,
"Failed to get rally point");
80 mavlink_msg_rally_point_send_buf(msg,
81 chan, msg->sysid, msg->compid, packet.idx,
90 case MAVLINK_MSG_ID_RALLY_POINT:
93 case MAVLINK_MSG_ID_RALLY_FETCH_POINT:
uint8_t get_rally_total() const
Object managing Rally Points.
Interface definition for the various Ground Control System.
void handle_rally_point(mavlink_message_t *msg)
uint8_t get_rally_max(void) const
bool set_rally_point_with_index(uint8_t i, const RallyLocation &rallyLoc)
virtual AP_Rally * get_rally() const =0
bool check_latlng(float lat, float lng)
void send_text(MAV_SEVERITY severity, const char *fmt,...)
bool get_rally_point_with_index(uint8_t i, RallyLocation &ret) const
void handle_common_rally_message(mavlink_message_t *msg)
void handle_rally_fetch_point(mavlink_message_t *msg)