mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_OpticalFlow: rename dataflash to logger
This commit is contained in:
parent
17ee20af3f
commit
679ccb95bf
@ -156,12 +156,12 @@ void OpticalFlow::update_state(const OpticalFlow_state &state)
|
||||
|
||||
void OpticalFlow::Log_Write_Optflow()
|
||||
{
|
||||
AP_Logger *instance = AP_Logger::get_singleton();
|
||||
if (instance == nullptr) {
|
||||
AP_Logger *logger = AP_Logger::get_singleton();
|
||||
if (logger == nullptr) {
|
||||
return;
|
||||
}
|
||||
if (_log_bit != (uint32_t)-1 &&
|
||||
!instance->should_log(_log_bit)) {
|
||||
!logger->should_log(_log_bit)) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -174,7 +174,7 @@ void OpticalFlow::Log_Write_Optflow()
|
||||
body_x : _state.bodyRate.x,
|
||||
body_y : _state.bodyRate.y
|
||||
};
|
||||
instance->WriteBlock(&pkt, sizeof(pkt));
|
||||
logger->WriteBlock(&pkt, sizeof(pkt));
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user