5
0
mirror of https://github.com/ArduPilot/ardupilot synced 2025-01-09 09:28:31 -04:00

GCS_MAVLink: GCS_Rally: increase severity of mavlink statustexts

This matches plane, sending at an increased level
This commit is contained in:
Peter Barker 2017-07-13 10:26:08 +10:00 committed by Francisco Ferreira
parent 480a83fdef
commit 99cc684d0a

View File

@ -29,12 +29,12 @@ void GCS_MAVLINK::handle_rally_point(mavlink_message_t *msg)
if (packet.idx >= r->get_rally_total() || if (packet.idx >= r->get_rally_total() ||
packet.idx >= r->get_rally_max()) { packet.idx >= r->get_rally_max()) {
send_text(MAV_SEVERITY_NOTICE,"Bad rally point message ID"); send_text(MAV_SEVERITY_WARNING,"Bad rally point message ID");
return; return;
} }
if (packet.count != r->get_rally_total()) { if (packet.count != r->get_rally_total()) {
send_text(MAV_SEVERITY_NOTICE,"Bad rally point message count"); send_text(MAV_SEVERITY_WARNING,"Bad rally point message count");
return; return;
} }
@ -67,13 +67,13 @@ void GCS_MAVLINK::handle_rally_fetch_point(mavlink_message_t *msg)
mavlink_msg_rally_fetch_point_decode(msg, &packet); mavlink_msg_rally_fetch_point_decode(msg, &packet);
if (packet.idx > r->get_rally_total()) { if (packet.idx > r->get_rally_total()) {
send_text(MAV_SEVERITY_NOTICE, "Bad rally point index"); send_text(MAV_SEVERITY_WARNING, "Bad rally point index");
return; return;
} }
RallyLocation rally_point; RallyLocation rally_point;
if (!r->get_rally_point_with_index(packet.idx, rally_point)) { if (!r->get_rally_point_with_index(packet.idx, rally_point)) {
send_text(MAV_SEVERITY_NOTICE, "Failed to set rally point"); send_text(MAV_SEVERITY_WARNING, "Failed to set rally point");
return; return;
} }