[hal] Fix portrait yaw from onboard IMU (#8037)

This commit is contained in:
Jonah Bonner
2025-06-25 01:34:50 -04:00
committed by GitHub
parent 2361959ff1
commit a77441b78a

View File

@@ -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;
}