mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 03:33:34 +08:00
Accel and gyro drivers: Add integrals
This commit is contained in:
@@ -57,10 +57,14 @@
|
||||
*/
|
||||
struct accel_report {
|
||||
uint64_t timestamp;
|
||||
uint64_t integral_dt; /**< integration time */
|
||||
uint64_t error_count;
|
||||
float x; /**< acceleration in the NED X board axis in m/s^2 */
|
||||
float y; /**< acceleration in the NED Y board axis in m/s^2 */
|
||||
float z; /**< acceleration in the NED Z board axis in m/s^2 */
|
||||
float x_integral; /**< velocity in the NED X board axis in m/s over the integration time frame */
|
||||
float y_integral; /**< velocity in the NED Y board axis in m/s over the integration time frame */
|
||||
float z_integral; /**< velocity in the NED Z board axis in m/s over the integration time frame */
|
||||
float temperature; /**< temperature in degrees celsius */
|
||||
float range_m_s2; /**< range in m/s^2 (+- this value) */
|
||||
float scaling;
|
||||
|
||||
@@ -57,10 +57,14 @@
|
||||
*/
|
||||
struct gyro_report {
|
||||
uint64_t timestamp;
|
||||
uint64_t integral_dt; /**< integration time */
|
||||
uint64_t error_count;
|
||||
float x; /**< angular velocity in the NED X board axis in rad/s */
|
||||
float y; /**< angular velocity in the NED Y board axis in rad/s */
|
||||
float z; /**< angular velocity in the NED Z board axis in rad/s */
|
||||
float x_integral; /**< delta angle in the NED X board axis in rad/s in the integration time frame */
|
||||
float y_integral; /**< delta angle in the NED Y board axis in rad/s in the integration time frame */
|
||||
float z_integral; /**< delta angle in the NED Z board axis in rad/s in the integration time frame */
|
||||
float temperature; /**< temperature in degrees celcius */
|
||||
float range_rad_s;
|
||||
float scaling;
|
||||
|
||||
Reference in New Issue
Block a user