mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-01 13:38:38 -04:00
Copter: stop setting home distance in fence
This commit is contained in:
parent
0f94fde434
commit
4dcb5aa3de
@ -11,9 +11,6 @@ void Copter::fence_check()
|
||||
uint8_t new_breaches; // the type of fence that has been breached
|
||||
uint8_t orig_breaches = fence.get_breaches();
|
||||
|
||||
// give fence library our current distance from home in meters
|
||||
fence.set_home_distance(home_distance()*0.01f);
|
||||
|
||||
// check for a breach
|
||||
new_breaches = fence.check_fence(current_loc.alt/100.0f);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user