Skip to content

Commit

Permalink
Correct test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
shancock884 committed Feb 28, 2024
1 parent 8a1db23 commit 1d7d62a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions generator/javascript/test/message10.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,12 @@ describe('Complete MAVLink 1.0 packet', function() {
, base_mode=45
, custom_mode=68
, system_status=13
, mavlink_version=1
);

this.mav.seq = 7;

// Create a buffer that matches what the Python version of MAVLink creates
var reference = new Buffer.from([0xfe, 0x09, 0x07, 0x2a, 0x96, 0x00, 0x44, 0x00, 0x00, 0x00, 0x05, 0x03, 0x2d, 0x0d, 0x01, 0xac, 0x9d]);
var reference = new Buffer.from([0xfe, 0x09, 0x07, 0x2a, 0x96, 0x00, 0x44, 0x00, 0x00, 0x00, 0x05, 0x03, 0x2d, 0x0d, 0x03, 0x1c, 0xae]);
new Buffer.from(heartbeat.pack(this.mav)).should.eql(reference);

});
Expand Down Expand Up @@ -161,7 +160,6 @@ describe('MAVLink 1.0 message', function() {
0, // base mode, mavlink10.MAV_MODE_FLAG_***
0, // custom mode
mavlink10.MAV_STATE_STANDBY, // system status
3 // MAVLink version
);

this.mav = new MAVLink10Processor();
Expand Down
2 changes: 0 additions & 2 deletions generator/javascript/test/message20.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ describe('Complete MAVLink 2.0 packet', function() {
, base_mode=45
, custom_mode=68
, system_status=13
, mavlink_version=3 // it's NOT a v1 vs v2 thing here. 3 really is its normal value.
);

this.mav.seq = 7;
Expand Down Expand Up @@ -356,7 +355,6 @@ describe('MAVLink 2.0 message', function() {
0, // base mode, mavlink.MAV_MODE_FLAG_***
0, // custom mode
mavlink20.MAV_STATE_STANDBY, // system status
3 // MAVLink version
);

this.mav = new MAVLink20Processor();
Expand Down

0 comments on commit 1d7d62a

Please sign in to comment.