uncrustify libraries/AP_InertialSensor/AP_InertialSensor_Oilpan.cpp
This commit is contained in:
parent
a946ed762b
commit
bc6d3811bc
@ -8,7 +8,7 @@ const uint8_t AP_InertialSensor_Oilpan::_sensors[6] = { 1, 2, 0, 4, 5, 6 };
|
||||
|
||||
// ADC result sign adjustment for sensors.
|
||||
const int8_t AP_InertialSensor_Oilpan::_sensor_signs[6] =
|
||||
{ 1, -1, -1, 1, -1 , -1 };
|
||||
{ 1, -1, -1, 1, -1, -1 };
|
||||
|
||||
// ADC channel reading the gyro temperature
|
||||
const uint8_t AP_InertialSensor_Oilpan::_gyro_temp_ch = 3;
|
||||
@ -103,10 +103,10 @@ bool AP_InertialSensor_Oilpan::update()
|
||||
|
||||
|
||||
/*
|
||||
X = 1619.30 to 2445.69
|
||||
Y = 1609.45 to 2435.42
|
||||
Z = 1627.44 to 2434.82
|
||||
*/
|
||||
* X = 1619.30 to 2445.69
|
||||
* Y = 1609.45 to 2435.42
|
||||
* Z = 1627.44 to 2434.82
|
||||
*/
|
||||
|
||||
return true;
|
||||
}
|
||||
@ -116,9 +116,15 @@ bool AP_InertialSensor_Oilpan::new_data_available( void )
|
||||
return _adc->new_data_available(_sensors);
|
||||
}
|
||||
|
||||
float AP_InertialSensor_Oilpan::gx() { return _gyro.x; }
|
||||
float AP_InertialSensor_Oilpan::gy() { return _gyro.y; }
|
||||
float AP_InertialSensor_Oilpan::gz() { return _gyro.z; }
|
||||
float AP_InertialSensor_Oilpan::gx() {
|
||||
return _gyro.x;
|
||||
}
|
||||
float AP_InertialSensor_Oilpan::gy() {
|
||||
return _gyro.y;
|
||||
}
|
||||
float AP_InertialSensor_Oilpan::gz() {
|
||||
return _gyro.z;
|
||||
}
|
||||
|
||||
void AP_InertialSensor_Oilpan::get_gyros( float * g )
|
||||
{
|
||||
@ -127,9 +133,15 @@ void AP_InertialSensor_Oilpan::get_gyros( float * g )
|
||||
g[2] = _gyro.z;
|
||||
}
|
||||
|
||||
float AP_InertialSensor_Oilpan::ax() { return _accel.x; }
|
||||
float AP_InertialSensor_Oilpan::ay() { return _accel.y; }
|
||||
float AP_InertialSensor_Oilpan::az() { return _accel.z; }
|
||||
float AP_InertialSensor_Oilpan::ax() {
|
||||
return _accel.x;
|
||||
}
|
||||
float AP_InertialSensor_Oilpan::ay() {
|
||||
return _accel.y;
|
||||
}
|
||||
float AP_InertialSensor_Oilpan::az() {
|
||||
return _accel.z;
|
||||
}
|
||||
|
||||
void AP_InertialSensor_Oilpan::get_accels( float * a )
|
||||
{
|
||||
@ -148,10 +160,15 @@ void AP_InertialSensor_Oilpan::get_sensors( float * sensors )
|
||||
sensors[5] = _accel.z;
|
||||
}
|
||||
|
||||
float AP_InertialSensor_Oilpan::temperature() { return _temp; }
|
||||
float AP_InertialSensor_Oilpan::temperature() {
|
||||
return _temp;
|
||||
}
|
||||
|
||||
uint32_t AP_InertialSensor_Oilpan::sample_time() { return _sample_time; }
|
||||
void AP_InertialSensor_Oilpan::reset_sample_time() { }
|
||||
uint32_t AP_InertialSensor_Oilpan::sample_time() {
|
||||
return _sample_time;
|
||||
}
|
||||
void AP_InertialSensor_Oilpan::reset_sample_time() {
|
||||
}
|
||||
|
||||
/* ------ Private functions -------------------------------------------*/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user