mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 02:18:29 -04:00
INS: add support for 400hz for PX4
This commit is contained in:
parent
3a78263921
commit
b7565affcd
@ -42,7 +42,8 @@ public:
|
|||||||
enum Sample_rate {
|
enum Sample_rate {
|
||||||
RATE_50HZ,
|
RATE_50HZ,
|
||||||
RATE_100HZ,
|
RATE_100HZ,
|
||||||
RATE_200HZ
|
RATE_200HZ,
|
||||||
|
RATE_400HZ
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Perform startup initialisation.
|
/// Perform startup initialisation.
|
||||||
|
@ -44,10 +44,14 @@ uint16_t AP_InertialSensor_PX4::_init_sensor( Sample_rate sample_rate )
|
|||||||
_sample_time_usec = 10000;
|
_sample_time_usec = 10000;
|
||||||
break;
|
break;
|
||||||
case RATE_200HZ:
|
case RATE_200HZ:
|
||||||
default:
|
|
||||||
_default_filter_hz = 30;
|
_default_filter_hz = 30;
|
||||||
_sample_time_usec = 5000;
|
_sample_time_usec = 5000;
|
||||||
break;
|
break;
|
||||||
|
case RATE_400HZ:
|
||||||
|
default:
|
||||||
|
_default_filter_hz = 30;
|
||||||
|
_sample_time_usec = 2500;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
_set_filter_frequency(_mpu6000_filter);
|
_set_filter_frequency(_mpu6000_filter);
|
||||||
|
Loading…
Reference in New Issue
Block a user