mirror of https://github.com/ArduPilot/ardupilot
AP_Airspeed: unify singleton naming to _singleton and get_singleton()
This commit is contained in:
parent
13f0ad8a1c
commit
0c32453505
|
@ -457,7 +457,7 @@ void AP_Airspeed::update(bool log)
|
|||
check_sensor_failures();
|
||||
|
||||
if (log) {
|
||||
AP_Logger *_dataflash = AP_Logger::instance();
|
||||
AP_Logger *_dataflash = AP_Logger::get_singleton();
|
||||
if (_dataflash != nullptr) {
|
||||
_dataflash->Write_Airspeed(*this);
|
||||
}
|
||||
|
|
|
@ -197,7 +197,7 @@ void AP_Airspeed_SDP3X::_timer()
|
|||
float AP_Airspeed_SDP3X::_correct_pressure(float press)
|
||||
{
|
||||
float temperature;
|
||||
AP_Baro *baro = AP_Baro::get_instance();
|
||||
AP_Baro *baro = AP_Baro::get_singleton();
|
||||
|
||||
if (baro == nullptr) {
|
||||
return press;
|
||||
|
|
Loading…
Reference in New Issue