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:
tridge60@gmail.com 2011-07-31 23:35:37 +00:00
parent 22b5eb4273
commit f951ffb602
1 changed files with 2 additions and 2 deletions

View File

@ -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;