Init hil accel with gravity
This commit is contained in:
parent
59f80410d5
commit
87292e0a4a
@ -4,6 +4,12 @@
|
||||
#include <AP_HAL.h>
|
||||
const extern AP_HAL::HAL& hal;
|
||||
|
||||
AP_InertialSensor_Stub::AP_InertialSensor_Stub() {
|
||||
Vector3f accels;
|
||||
accels.z = -9.808;
|
||||
set_accel(accels);
|
||||
}
|
||||
|
||||
uint16_t AP_InertialSensor_Stub::_init_sensor( Sample_rate sample_rate ) {
|
||||
switch (sample_rate) {
|
||||
case RATE_50HZ:
|
||||
|
@ -10,8 +10,7 @@ class AP_InertialSensor_Stub : public AP_InertialSensor
|
||||
{
|
||||
public:
|
||||
|
||||
AP_InertialSensor_Stub() {
|
||||
}
|
||||
AP_InertialSensor_Stub();
|
||||
|
||||
/* Concrete implementation of AP_InertialSensor functions: */
|
||||
bool update();
|
||||
|
Loading…
Reference in New Issue
Block a user