AP_HAL_Empty: adapt to new api

Removed gyro_cb in HAL interface
Added 2 new methods
This commit is contained in:
Julien Beraud 2017-01-17 18:18:02 +01:00 committed by Andrew Tridgell
parent 4646428ac0
commit c08587fb09
1 changed files with 3 additions and 1 deletions

View File

@ -16,6 +16,8 @@
class Empty::OpticalFlow : public AP_HAL::OpticalFlow {
public:
void init(AP_HAL::OpticalFlow::Gyro_Cb) { }
void init() { }
bool read(Data_Frame& frame) { return false; }
void push_gyro(float gyro_x, float gyro_y, float dt) { };
void push_gyro_bias(float gyro_bias_x, float gyro_bias_y) { }
};