Copter: Copter.h method reordering

This commit is contained in:
Randy Mackay
2017-12-15 08:26:45 +09:00
parent 26f3a62db7
commit 2c0df87585
2 changed files with 211 additions and 162 deletions
+209 -162
View File
File diff suppressed because it is too large Load Diff
+2
View File
@@ -10,6 +10,7 @@ void Copter::run_nav_updates(void)
flightmode->update_navigation();
}
// distance between vehicle and home in cm
uint32_t Copter::home_distance()
{
if (position_ok()) {
@@ -20,6 +21,7 @@ uint32_t Copter::home_distance()
return _home_distance;
}
// The location of home in relation to the vehicle in centi-degrees
int32_t Copter::home_bearing()
{
if (position_ok()) {