Skip to content

Commit be15a2a

Browse files
committed
fix thunderloop log bug
1 parent 6eeb1e8 commit be15a2a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/software/embedded/thunderloop.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ void Thunderloop::runLoop()
186186
std::optional<ImuData> imu_poll = imu_service_->poll();
187187

188188
//TODO: Replace with actual IMU data usage
189-
if (imu_poll.has_value()){
190-
LOG(INFO) << "IMU Angular Velocity: " << imu_poll->angular_velocity.toRadians();
189+
if (imu_poll.has_value() && imu_poll->angular_velocity.has_value()){
190+
LOG(INFO) << "IMU Angular Velocity: " << imu_poll->angular_velocity->toRadians();
191191
}
192192

193193
for (;;)

0 commit comments

Comments
 (0)