mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-01 02:41:48 +00:00
[hal] Fix portrait yaw from onboard IMU (#8037)
This commit is contained in:
@@ -123,7 +123,7 @@ double HAL_GetIMUYawLandscape(int64_t* timestamp) {
|
||||
}
|
||||
|
||||
double HAL_GetIMUYawPortrait(int64_t* timestamp) {
|
||||
auto update = imu->yawFlatSub.GetAtomic();
|
||||
auto update = imu->yawPortraitSub.GetAtomic();
|
||||
*timestamp = update.time;
|
||||
return update.value * kDegreesToRadians;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user