mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 00:28:30 -04:00
modify crosstrack calc
This commit is contained in:
parent
b3747ab10f
commit
31159a7e1b
@ -183,7 +183,7 @@ static void update_crosstrack(void)
|
|||||||
|
|
||||||
static void reset_crosstrack()
|
static void reset_crosstrack()
|
||||||
{
|
{
|
||||||
crosstrack_bearing = get_bearing(¤t_loc, &next_WP); // Used for track following
|
crosstrack_bearing = get_bearing(&prev_WP, &next_WP); // Used for track following
|
||||||
}
|
}
|
||||||
|
|
||||||
static long get_distance(struct Location *loc1, struct Location *loc2)
|
static long get_distance(struct Location *loc1, struct Location *loc2)
|
||||||
|
Loading…
Reference in New Issue
Block a user