You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
731 B
36 lines
731 B
13 years ago
|
|
||
|
#ifndef __AP_INERTIAL_SENSOR_STUB_H__
|
||
|
#define __AP_INERTIAL_SENSOR_STUB_H__
|
||
|
|
||
|
#include <string.h>
|
||
|
#include <stdint.h>
|
||
|
|
||
|
#include "../AP_PeriodicProcess/AP_PeriodicProcess.h"
|
||
|
#include "AP_InertialSensor.h"
|
||
|
|
||
|
class AP_InertialSensor_Stub : public AP_InertialSensor
|
||
|
{
|
||
|
public:
|
||
|
|
||
|
AP_InertialSensor_Stub() {}
|
||
|
|
||
|
void init( AP_PeriodicProcess * scheduler );
|
||
|
|
||
|
/* Concrete implementation of AP_InertialSensor functions: */
|
||
|
bool update();
|
||
|
float gx();
|
||
|
float gy();
|
||
|
float gz();
|
||
|
void get_gyros( float * );
|
||
|
float ax();
|
||
|
float ay();
|
||
|
float az();
|
||
|
void get_accels( float * );
|
||
|
void get_sensors( float * );
|
||
|
float temperature();
|
||
|
uint32_t sample_time();
|
||
|
void reset_sample_time();
|
||
|
};
|
||
|
|
||
|
#endif // __AP_INERTIAL_SENSOR_STUB_H__
|