uncrustify libraries/AP_InertialSensor/AP_InertialSensor_Oilpan.h
This commit is contained in:
parent
c47127fb80
commit
91d52b6290
@ -12,67 +12,67 @@
|
|||||||
|
|
||||||
class AP_InertialSensor_Oilpan : public AP_InertialSensor
|
class AP_InertialSensor_Oilpan : public AP_InertialSensor
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
AP_InertialSensor_Oilpan( AP_ADC * adc );
|
AP_InertialSensor_Oilpan( AP_ADC * adc );
|
||||||
|
|
||||||
/* Concrete implementation of AP_InertialSensor functions: */
|
/* Concrete implementation of AP_InertialSensor functions: */
|
||||||
uint16_t init(AP_PeriodicProcess * scheduler);
|
uint16_t init(AP_PeriodicProcess * scheduler);
|
||||||
bool update();
|
bool update();
|
||||||
bool new_data_available();
|
bool new_data_available();
|
||||||
float gx();
|
float gx();
|
||||||
float gy();
|
float gy();
|
||||||
float gz();
|
float gz();
|
||||||
void get_gyros( float * );
|
void get_gyros( float * );
|
||||||
float ax();
|
float ax();
|
||||||
float ay();
|
float ay();
|
||||||
float az();
|
float az();
|
||||||
void get_accels( float * );
|
void get_accels( float * );
|
||||||
void get_sensors( float * );
|
void get_sensors( float * );
|
||||||
float temperature();
|
float temperature();
|
||||||
uint32_t sample_time();
|
uint32_t sample_time();
|
||||||
void reset_sample_time();
|
void reset_sample_time();
|
||||||
float get_gyro_drift_rate();
|
float get_gyro_drift_rate();
|
||||||
|
|
||||||
static const struct AP_Param::GroupInfo var_info[];
|
static const struct AP_Param::GroupInfo var_info[];
|
||||||
|
|
||||||
AP_Int16 _x_high;
|
AP_Int16 _x_high;
|
||||||
AP_Int16 _x_low;
|
AP_Int16 _x_low;
|
||||||
AP_Int16 _y_high;
|
AP_Int16 _y_high;
|
||||||
AP_Int16 _y_low;
|
AP_Int16 _y_low;
|
||||||
AP_Int16 _z_high;
|
AP_Int16 _z_high;
|
||||||
AP_Int16 _z_low;
|
AP_Int16 _z_low;
|
||||||
|
|
||||||
Vector3f _accel_scale;
|
Vector3f _accel_scale;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Vector3f _gyro;
|
Vector3f _gyro;
|
||||||
Vector3f _accel;
|
Vector3f _accel;
|
||||||
|
|
||||||
Vector3f _accel_high;
|
Vector3f _accel_high;
|
||||||
Vector3f _accel_low;
|
Vector3f _accel_low;
|
||||||
Vector3f _accel_mid;
|
Vector3f _accel_mid;
|
||||||
|
|
||||||
AP_ADC *_adc;
|
AP_ADC * _adc;
|
||||||
|
|
||||||
float _temp;
|
float _temp;
|
||||||
|
|
||||||
uint32_t _sample_time;
|
uint32_t _sample_time;
|
||||||
|
|
||||||
static const uint8_t _sensors[6];
|
static const uint8_t _sensors[6];
|
||||||
static const int8_t _sensor_signs[6];
|
static const int8_t _sensor_signs[6];
|
||||||
static const uint8_t _gyro_temp_ch;
|
static const uint8_t _gyro_temp_ch;
|
||||||
|
|
||||||
static const float _gravity;
|
static const float _gravity;
|
||||||
|
|
||||||
static const float _gyro_gain_x;
|
static const float _gyro_gain_x;
|
||||||
static const float _gyro_gain_y;
|
static const float _gyro_gain_y;
|
||||||
static const float _gyro_gain_z;
|
static const float _gyro_gain_z;
|
||||||
|
|
||||||
static const float _adc_constraint;
|
static const float _adc_constraint;
|
||||||
|
|
||||||
float _gyro_apply_std_offset( float adc_value );
|
float _gyro_apply_std_offset( float adc_value );
|
||||||
float _accel_apply_std_offset( float adc_value );
|
float _accel_apply_std_offset( float adc_value );
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // __AP_INERTIAL_SENSOR_OILPAN_H__
|
#endif // __AP_INERTIAL_SENSOR_OILPAN_H__
|
||||||
|
Loading…
Reference in New Issue
Block a user