Skip to content

Commit

Permalink
Test Case
Browse files Browse the repository at this point in the history
  • Loading branch information
RReichert committed Oct 3, 2024
1 parent 99c621d commit 9abcb17
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion python/tests/sbp/test_messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
PYTHON_ROOT = os.path.join(HERE, "..", "..")
ROOTPATH = os.path.join(PYTHON_ROOT, "..", "spec", "tests", "yaml")

EXPECTED_MISSING_MESSAGES = 2
EXPECTED_MISSING_MESSAGES = 1
MESSAGES_WITH_TEST_CASES = set()


Expand Down
27 changes: 27 additions & 0 deletions spec/tests/yaml/swiftnav/sbp/imu/test_MsgImuComp.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
description: Unit tests for swiftnav.sbp.imu MsgImuCmp
generated_on: 2024-10-03 01:03:00.00 # manually generated
package: sbp.imu
tests:
- msg:
fields:
time: 3221225754
flags: 206
acc_comp_x: 96
acc_comp_y: -33
acc_comp_z: 4140
gyr_comp_x: 60
gyr_comp_y: -304
gyr_comp_z: -18
module: sbp.imu
name: MsgImuComp
msg_type: "0x905"
raw_json: '{"time":3221225754,"flags":206,"acc_comp_x":96,"acc_comp_y":-33,"acc_comp_z":4140,"gyr_comp_x":60,"gyr_comp_y":-304,"gyr_comp_z":-18,"preamble":85,"msg_type":2309,"sender":4660,"payload":"GgEAwAAAAADOAGAAAADf////LBAAADwAAADQ/v//7v///w==","crc":22095,"length":34}'
raw_packet: VQUJNBIiGgEAwAAAAADOAGAAAADf////LBAAADwAAADQ/v//7v///09W
sbp:
crc: "0x564f"
length: 34
msg_type: "0x905"
payload: GgEAwAAAAADOAGAAAADf////LBAAADwAAADQ/v//7v///w==
preamble: "0x55"
sender: "0x1234"

0 comments on commit 9abcb17

Please sign in to comment.