mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_OpticalFlow: fixed shadowed variable build warning
This commit is contained in:
parent
9e7e1b2f01
commit
76b2759317
@ -17,6 +17,12 @@
|
||||
|
||||
extern const AP_HAL::HAL& hal;
|
||||
|
||||
OpticalFlow_backend::OpticalFlow_backend(OpticalFlow &_frontend) :
|
||||
frontend(_frontend)
|
||||
{
|
||||
_sem = hal.util->new_semaphore();
|
||||
}
|
||||
|
||||
// update the frontend
|
||||
void OpticalFlow_backend::_update_frontend(const struct OpticalFlow::OpticalFlow_state &state)
|
||||
{
|
||||
|
@ -20,17 +20,13 @@
|
||||
|
||||
#include "OpticalFlow.h"
|
||||
|
||||
extern const AP_HAL::HAL& hal;
|
||||
|
||||
class OpticalFlow_backend
|
||||
{
|
||||
friend class OpticalFlow;
|
||||
|
||||
public:
|
||||
// constructor
|
||||
OpticalFlow_backend(OpticalFlow &_frontend) : frontend(_frontend) {
|
||||
_sem = hal.util->new_semaphore();
|
||||
}
|
||||
OpticalFlow_backend(OpticalFlow &_frontend);
|
||||
|
||||
// init - initialise sensor
|
||||
virtual void init() = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user