mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
APM_Control: unify singleton naming to _singleton and get_singleton()
This commit is contained in:
parent
9f0e895c37
commit
752804c2a5
@ -266,7 +266,7 @@ void AP_AutoTune::check_save(void)
|
||||
*/
|
||||
void AP_AutoTune::log_param_change(float v, const char *suffix)
|
||||
{
|
||||
AP_Logger *dataflash = AP_Logger::instance();
|
||||
AP_Logger *dataflash = AP_Logger::get_singleton();
|
||||
if (!dataflash->logging_started()) {
|
||||
return;
|
||||
}
|
||||
@ -327,7 +327,7 @@ void AP_AutoTune::save_gains(const ATGains &v)
|
||||
|
||||
void AP_AutoTune::write_log(float servo, float demanded, float achieved)
|
||||
{
|
||||
AP_Logger *dataflash = AP_Logger::instance();
|
||||
AP_Logger *dataflash = AP_Logger::get_singleton();
|
||||
if (!dataflash->logging_started()) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user