mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-17 02:52:12 +01:00
AHRS: Export gyro data as deg/s instead of rad/s to match the object label
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1851 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
9f34044d74
commit
840df39b78
@ -576,9 +576,9 @@ void downsample_data()
|
||||
raw.gyros[1] = valid_data_buffer[3];
|
||||
raw.gyros[2] = valid_data_buffer[5];
|
||||
|
||||
raw.gyros_filtered[0] = gyro_data.filtered.x;
|
||||
raw.gyros_filtered[1] = gyro_data.filtered.y;
|
||||
raw.gyros_filtered[2] = gyro_data.filtered.z;
|
||||
raw.gyros_filtered[0] = gyro_data.filtered.x * 180 / M_PI;
|
||||
raw.gyros_filtered[1] = gyro_data.filtered.y * 180 / M_PI;
|
||||
raw.gyros_filtered[2] = gyro_data.filtered.z * 180 / M_PI;
|
||||
|
||||
raw.accels[0] = valid_data_buffer[2];
|
||||
raw.accels[1] = valid_data_buffer[0];
|
||||
|
Loading…
x
Reference in New Issue
Block a user