Skip to content

Commit

Permalink
AP_HAL_Empty: adapt to new api
Browse files Browse the repository at this point in the history
Removed gyro_cb in HAL interface
Added 2 new methods
  • Loading branch information
Julien Beraud authored and tridge committed Jan 23, 2017
1 parent 4646428 commit c08587f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libraries/AP_HAL_Empty/OpticalFlow.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) { }
};

0 comments on commit c08587f

Please sign in to comment.