ArduCopter: Remove kruft from old RTK driver
This commit is contained in:
parent
a5beef00d1
commit
704e75d140
@ -1116,9 +1116,6 @@ static void update_GPS(void)
|
|||||||
// set system time if necessary
|
// set system time if necessary
|
||||||
set_system_time_from_GPS();
|
set_system_time_from_GPS();
|
||||||
|
|
||||||
// check gps base position (used for RTK only)
|
|
||||||
check_gps_base_pos();
|
|
||||||
|
|
||||||
// checks to initialise home and take location based pictures
|
// checks to initialise home and take location based pictures
|
||||||
if (gps.status() >= AP_GPS::GPS_OK_FIX_3D) {
|
if (gps.status() >= AP_GPS::GPS_OK_FIX_3D) {
|
||||||
|
|
||||||
|
@ -118,16 +118,3 @@ static void set_system_time_from_GPS()
|
|||||||
Log_Write_Event(DATA_SYSTEM_TIME_SET);
|
Log_Write_Event(DATA_SYSTEM_TIME_SET);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// check_gps_base_pos - sets gps base position (used for RTK only)
|
|
||||||
static void check_gps_base_pos()
|
|
||||||
{
|
|
||||||
if (!ap.gps_base_pos_set && !motors.armed() && home_is_set()) {
|
|
||||||
// if we're ready to enter RTK mode, then capture current state as home,
|
|
||||||
// and enter RTK fixes
|
|
||||||
if (gps.can_calculate_base_pos()) {
|
|
||||||
gps.calculate_base_pos();
|
|
||||||
}
|
|
||||||
ap.gps_base_pos_set = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user