2011-11-12 23:24:03 -04:00
|
|
|
|
|
|
|
#include "IMU.h"
|
|
|
|
|
2012-02-17 19:39:05 -04:00
|
|
|
// this allows the sensor calibration to be saved to EEPROM
|
|
|
|
const AP_Param::GroupInfo IMU::var_info[] PROGMEM = {
|
|
|
|
AP_GROUPINFO("CAL", 0, IMU, _sensor_cal),
|
2012-05-08 23:29:59 -03:00
|
|
|
AP_GROUPINFO("PRODUCT_ID", 1, IMU, _product_id),
|
2012-02-17 19:39:05 -04:00
|
|
|
AP_GROUPEND
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2011-11-12 23:24:03 -04:00
|
|
|
/* Empty implementations for the IMU functions.
|
|
|
|
* Although these will never be used, in certain situations with
|
|
|
|
* optimizations turned off, having empty implementations in an object
|
2012-06-13 15:44:35 -03:00
|
|
|
* file will help satisfy the linker.
|
2011-11-12 23:24:03 -04:00
|
|
|
*/
|
|
|
|
|
|
|
|
IMU::IMU () {}
|
|
|
|
|
|
|
|
|
|
|
|
void IMU::init( Start_style style,
|
2011-12-13 03:19:12 -04:00
|
|
|
void (*delay_cb)(unsigned long t),
|
|
|
|
void (*flash_leds_cb)(bool on),
|
|
|
|
AP_PeriodicProcess * scheduler )
|
2011-11-12 23:24:03 -04:00
|
|
|
{ }
|
|
|
|
|
2011-12-13 03:19:12 -04:00
|
|
|
void IMU::init_accel(void (*delay_cb)(unsigned long t), void (*flash_leds_cb)(bool on))
|
2011-11-12 23:24:03 -04:00
|
|
|
{ }
|
|
|
|
|
2011-12-13 03:19:12 -04:00
|
|
|
void IMU::init_gyro(void (*delay_cb)(unsigned long t), void (*flash_leds_cb)(bool on))
|
2011-11-12 23:24:03 -04:00
|
|
|
{ }
|
|
|
|
|
|
|
|
bool IMU::update(void) { return false; }
|
2012-03-03 03:31:55 -04:00
|
|
|
bool IMU::new_data_available(void) { return true; }
|
2011-11-12 23:24:03 -04:00
|
|
|
|
|
|
|
float IMU::gx(void) { return 0.0; }
|
|
|
|
float IMU::gy(void) { return 0.0; }
|
|
|
|
float IMU::gz(void) { return 0.0; }
|
|
|
|
float IMU::ax(void) { return 0.0; }
|
|
|
|
float IMU::ay(void) { return 0.0; }
|
|
|
|
float IMU::az(void) { return 0.0; }
|
|
|
|
void IMU::ax(const float v) { }
|
|
|
|
void IMU::ay(const float v) { }
|
|
|
|
void IMU::az(const float v) { }
|
2012-03-08 03:10:57 -04:00
|
|
|
float IMU::get_gyro_drift_rate(void) { return 0; }
|