fixed InertialSensor stub build

This commit is contained in:
Andrew Tridgell 2011-11-13 17:55:56 +11:00 committed by Pat Hickey
parent 8300e21a8c
commit 252e858011
2 changed files with 3 additions and 3 deletions

View File

@ -217,8 +217,8 @@ AP_TimerProcess timer_scheduler;
AP_GPS_HIL g_gps_driver(NULL);
AP_Compass_HIL compass; // never used
AP_IMU_Shim imu; // never used
AP_InertialSensorStub ins;
AP_PeriodicProcessStub timer_scheduler;
AP_InertialSensor_Stub ins;
AP_PeriodicProcessStub timer_scheduler;
#ifdef OPTFLOW_ENABLED
AP_OpticalFlow_ADNS3080 optflow;
#endif

View File

@ -5,7 +5,7 @@ void AP_InertialSensor_Stub::init( AP_PeriodicProcess * scheduler ) {}
/*================ AP_INERTIALSENSOR PUBLIC INTERFACE ==================== */
bool AP_InertialSensor_Stub::update( void ) {}
bool AP_InertialSensor_Stub::update( void ) { return true; }
float AP_InertialSensor_Stub::gx() { return 0.0f; }