ethz-asl / data-driven-dynamics

Data Driven Dynamics Modeling for Aerial Vehicles
Other
98 stars 14 forks source link

[Do not merge] Compute angular accelerations using numerical differentiation #164

Closed manumerous closed 3 years ago

manumerous commented 3 years ago

This PR implements the possibility to compute the angular accelerations from nummerically differentiating the angular velocities using second order accurate central differences. The computation of the angular acceleration is applied before the resampling and filtering on the raw data.

This is needed for all flight logs since the angular acceleration topic is only present in logs from the sim.

Comparison

For comparison I attached the angular velocity measurement and computation (always the blue lines):

Angular acceleration from the sim

Figure_3_sim

Angular acceleration from numerical differentiation

Figure_3_finite_diff

Conclusion

The numerical approximation seems close enough to the ground truth from the sim for now.

Jaeyoung-Lim commented 3 years ago

Included in https://github.com/ethz-asl/data-driven-dynamics/pull/165