mirror of https://github.com/ArduPilot/ardupilot
IMU: fixed HIL init with callback
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2988 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
parent
91e101f47e
commit
9ead82f137
|
@ -14,8 +14,8 @@ public:
|
||||||
/// @name IMU protocol
|
/// @name IMU protocol
|
||||||
//@{
|
//@{
|
||||||
virtual void init(Start_style style, void (*callback)(unsigned long t)) {}
|
virtual void init(Start_style style, void (*callback)(unsigned long t)) {}
|
||||||
virtual void init_accel() {};
|
virtual void init_accel(void (*callback)(unsigned long t) = delay) {};
|
||||||
virtual void init_gyro() {};
|
virtual void init_gyro(void (*callback)(unsigned long t) = delay) {};
|
||||||
virtual bool update(void) {
|
virtual bool update(void) {
|
||||||
bool updated = _updated;
|
bool updated = _updated;
|
||||||
_updated = false;
|
_updated = false;
|
||||||
|
|
Loading…
Reference in New Issue