mirror of https://github.com/ArduPilot/ardupilot
fixed typo
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1857 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
parent
5d63a05de7
commit
395e642f3b
|
@ -327,14 +327,14 @@ bool verify_nav_wp()
|
|||
update_crosstrack();
|
||||
|
||||
if (next_WP.options & WP_OPTION_ALT_REQUIRED){
|
||||
byte = current_loc.alt > next_WP.alt;
|
||||
alt = (current_loc.alt > next_WP.alt);
|
||||
}
|
||||
|
||||
if ((wp_distance > 0) && (wp_distance <= g.waypoint_radius)) {
|
||||
//SendDebug("MSG <verify_must: MAV_CMD_NAV_WAYPOINT> REACHED_WAYPOINT #");
|
||||
//SendDebugln(command_must_index,DEC);
|
||||
|
||||
if (alt){
|
||||
if (alt == true){
|
||||
char message[30];
|
||||
sprintf(message,"Reached Waypoint #%i",command_must_index);
|
||||
gcs.send_text(SEVERITY_LOW,message);
|
||||
|
|
Loading…
Reference in New Issue