We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6eeb1e8 commit be15a2aCopy full SHA for be15a2a
1 file changed
src/software/embedded/thunderloop.cpp
@@ -186,8 +186,8 @@ void Thunderloop::runLoop()
186
std::optional<ImuData> imu_poll = imu_service_->poll();
187
188
//TODO: Replace with actual IMU data usage
189
- if (imu_poll.has_value()){
190
- LOG(INFO) << "IMU Angular Velocity: " << imu_poll->angular_velocity.toRadians();
+ if (imu_poll.has_value() && imu_poll->angular_velocity.has_value()){
+ LOG(INFO) << "IMU Angular Velocity: " << imu_poll->angular_velocity->toRadians();
191
}
192
193
for (;;)
0 commit comments