You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using the okapi::IMU, sometimes pros::c::imu_get_euler gives an error value, setting errno. This results in the euler containing PROS_ERR_F values, but okapi::IMU::get() instead checks for PROS_ERR values, leading to the error not being handled properly.
Steps To Reproduce
Reset an IMU and try to use it before it finishes resetting.
Expected behavior IMU::get() should return PROS_ERR_F
Versions
The bug was discovered while running OkapiLib 4.8.0 and PROS kernel 3.7.3
The text was updated successfully, but these errors were encountered:
Describe the bug
When using the
okapi::IMU
, sometimes pros::c::imu_get_euler gives an error value, settingerrno
. This results in the euler containingPROS_ERR_F
values, butokapi::IMU::get()
instead checks forPROS_ERR
values, leading to the error not being handled properly.Steps To Reproduce
Reset an IMU and try to use it before it finishes resetting.
Expected behavior
IMU::get()
should returnPROS_ERR_F
Versions
The bug was discovered while running OkapiLib 4.8.0 and PROS kernel 3.7.3
The text was updated successfully, but these errors were encountered: