2011-12-21 00:30:22 -04:00
|
|
|
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
2011-11-13 02:42:20 -04:00
|
|
|
|
|
|
|
#include "AP_InertialSensor_Stub.h"
|
|
|
|
|
2012-05-08 23:26:35 -03:00
|
|
|
uint16_t AP_InertialSensor_Stub::init( AP_PeriodicProcess * scheduler ) {
|
2012-08-17 03:19:56 -03:00
|
|
|
return AP_PRODUCT_ID_NONE;
|
2012-05-08 23:26:35 -03:00
|
|
|
}
|
2011-11-13 02:42:20 -04:00
|
|
|
|
|
|
|
/*================ AP_INERTIALSENSOR PUBLIC INTERFACE ==================== */
|
|
|
|
|
2012-08-17 03:19:56 -03:00
|
|
|
bool AP_InertialSensor_Stub::update( void ) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
bool AP_InertialSensor_Stub::new_data_available( void ) {
|
|
|
|
return true;
|
|
|
|
}
|
2011-11-13 02:42:20 -04:00
|
|
|
|
|
|
|
|
2012-08-17 03:19:56 -03:00
|
|
|
float AP_InertialSensor_Stub::gx() {
|
|
|
|
return 0.0f;
|
|
|
|
}
|
|
|
|
float AP_InertialSensor_Stub::gy() {
|
|
|
|
return 0.0f;
|
|
|
|
}
|
|
|
|
float AP_InertialSensor_Stub::gz() {
|
|
|
|
return 0.0f;
|
|
|
|
}
|
2011-11-13 02:42:20 -04:00
|
|
|
|
2012-08-17 03:19:56 -03:00
|
|
|
void AP_InertialSensor_Stub::get_gyros( float * g ) {
|
|
|
|
}
|
2011-11-13 02:42:20 -04:00
|
|
|
|
2012-08-17 03:19:56 -03:00
|
|
|
float AP_InertialSensor_Stub::ax() {
|
|
|
|
return 0.0f;
|
|
|
|
}
|
|
|
|
float AP_InertialSensor_Stub::ay() {
|
|
|
|
return 0.0f;
|
|
|
|
}
|
|
|
|
float AP_InertialSensor_Stub::az() {
|
|
|
|
return 0.0f;
|
|
|
|
}
|
2011-11-13 02:42:20 -04:00
|
|
|
|
2012-08-17 03:19:56 -03:00
|
|
|
void AP_InertialSensor_Stub::get_accels( float * a ) {
|
|
|
|
}
|
|
|
|
void AP_InertialSensor_Stub::get_sensors( float * sensors ) {
|
|
|
|
}
|
2011-11-13 02:42:20 -04:00
|
|
|
|
2012-08-17 03:19:56 -03:00
|
|
|
float AP_InertialSensor_Stub::temperature() {
|
|
|
|
return 0.0;
|
|
|
|
}
|
|
|
|
uint32_t AP_InertialSensor_Stub::sample_time() {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
void AP_InertialSensor_Stub::reset_sample_time() {
|
|
|
|
}
|
|
|
|
float AP_InertialSensor_Stub::get_gyro_drift_rate(void) {
|
|
|
|
return 0.0;
|
|
|
|
}
|