Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions c/include/libsbp/imu.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,9 @@ SBP_PACK_START
*/
#define SBP_MSG_IMU_RAW 0x0900
typedef struct SBP_ATTR_PACKED {
u32 tow; /**< Milliseconds since start of GPS week. If the high bit is set, the
time is unknown or invalid.
[ms] */
u8 tow_f; /**< Milliseconds since start of GPS week, fractional part
u32 tow; /**< Milliseconds since reference epoch and time status.
*/
u8 tow_f; /**< Milliseconds since reference epoch, fractional part
[ms / 256] */
s16 acc_x; /**< Acceleration in the IMU frame X axis */
s16 acc_y; /**< Acceleration in the IMU frame Y axis */
Expand Down
Binary file modified docs/sbp.pdf
Binary file not shown.
5 changes: 2 additions & 3 deletions haskell/src/SwiftNav/SBP/Imu.hs
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,9 @@ msgImuRaw = 0x0900
-- message.
data MsgImuRaw = MsgImuRaw
{ _msgImuRaw_tow :: !Word32
-- ^ Milliseconds since start of GPS week. If the high bit is set, the time
-- is unknown or invalid.
-- ^ Milliseconds since reference epoch and time status.
, _msgImuRaw_tow_f :: !Word8
-- ^ Milliseconds since start of GPS week, fractional part
-- ^ Milliseconds since reference epoch, fractional part
, _msgImuRaw_acc_x :: !Int16
-- ^ Acceleration in the IMU frame X axis
, _msgImuRaw_acc_y :: !Int16
Expand Down
5 changes: 2 additions & 3 deletions java/src/com/swiftnav/sbp/imu/MsgImuRaw.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,11 @@ public class MsgImuRaw extends SBPMessage {
public static final int TYPE = 0x0900;


/** Milliseconds since start of GPS week. If the high bit is set, the
time is unknown or invalid.
/** Milliseconds since reference epoch and time status.
*/
public long tow;

/** Milliseconds since start of GPS week, fractional part
/** Milliseconds since reference epoch, fractional part
*/
public int tow_f;

Expand Down
5 changes: 2 additions & 3 deletions javascript/sbp/imu.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ var UInt64 = require('cuint').UINT64;
* device hardware and settings, are communicated via the MSG_IMU_AUX message.
*
* Fields in the SBP payload (`sbp.payload`):
* @field tow number (unsigned 32-bit int, 4 bytes) Milliseconds since start of GPS week. If the high bit is set, the time is
* unknown or invalid.
* @field tow_f number (unsigned 8-bit int, 1 byte) Milliseconds since start of GPS week, fractional part
* @field tow number (unsigned 32-bit int, 4 bytes) Milliseconds since reference epoch and time status.
* @field tow_f number (unsigned 8-bit int, 1 byte) Milliseconds since reference epoch, fractional part
* @field acc_x number (signed 16-bit int, 2 bytes) Acceleration in the IMU frame X axis
* @field acc_y number (signed 16-bit int, 2 bytes) Acceleration in the IMU frame Y axis
* @field acc_z number (signed 16-bit int, 2 bytes) Acceleration in the IMU frame Z axis
Expand Down
Loading