|
|
|
@ -216,7 +216,7 @@ static bool verify_nav_wp()
@@ -216,7 +216,7 @@ static bool verify_nav_wp()
|
|
|
|
|
if ((wp_distance > 0) && (wp_distance <= g.waypoint_radius)) { |
|
|
|
|
gcs_send_text_fmt(PSTR("Reached Waypoint #%i dist %um"), |
|
|
|
|
(unsigned)nav_command_index, |
|
|
|
|
(unsigned)get_distance(¤t_loc, &next_WP)); |
|
|
|
|
(unsigned)get_distance(current_loc, next_WP)); |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -224,7 +224,7 @@ static bool verify_nav_wp()
@@ -224,7 +224,7 @@ static bool verify_nav_wp()
|
|
|
|
|
if (location_passed_point(current_loc, prev_WP, next_WP)) { |
|
|
|
|
gcs_send_text_fmt(PSTR("Passed Waypoint #%i dist %um"), |
|
|
|
|
(unsigned)nav_command_index, |
|
|
|
|
(unsigned)get_distance(¤t_loc, &next_WP)); |
|
|
|
|
(unsigned)get_distance(current_loc, next_WP)); |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -242,7 +242,7 @@ static bool verify_RTL()
@@ -242,7 +242,7 @@ static bool verify_RTL()
|
|
|
|
|
// have we gone past the waypoint? |
|
|
|
|
if (location_passed_point(current_loc, prev_WP, next_WP)) { |
|
|
|
|
gcs_send_text_fmt(PSTR("Reached Home dist %um"), |
|
|
|
|
(unsigned)get_distance(¤t_loc, &next_WP)); |
|
|
|
|
(unsigned)get_distance(current_loc, next_WP)); |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|