Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
Added an explicit cast in the processing loop
Browse files Browse the repository at this point in the history
  • Loading branch information
Juan Chong committed Mar 9, 2020
1 parent 16823b8 commit 870b6da
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ private void acquire() {

if (calc_crc == imu_crc) {
// Timestamp is at buffer[i]
m_dt = (buffer[i] - previous_timestamp) / 1000000.0;
m_dt = ((double)buffer[i] - previous_timestamp) / 1000000.0;

// Scale sensor data
gyro_x = (toShort(buffer[i + 5], buffer[i + 6]) * 0.04);
Expand Down

0 comments on commit 870b6da

Please sign in to comment.