@@ -29,7 +29,7 @@ describe('MAVLink Functions', function () {
29
29
assert . equal ( m . conStatusInt ( ) , 0 )
30
30
assert . equal ( m . statusArmed , 0 )
31
31
32
- var hb = new Buffer . from ( [ 0xfd , 0x09 , 0x00 , 0x00 , 0x07 , 0x2a , 0x96 , 0x00 , 0x00 , 0x00 , 0x44 , 0x00 , 0x00 , 0x00 , 0x05 , 0x03 , 0x2d , 0x0d , 0x02 , 0x7e , 0xfd ] )
32
+ const hb = new Buffer . from ( [ 0xfd , 0x09 , 0x00 , 0x00 , 0x07 , 0x2a , 0x96 , 0x00 , 0x00 , 0x00 , 0x44 , 0x00 , 0x00 , 0x00 , 0x05 , 0x03 , 0x2d , 0x0d , 0x02 , 0x7e , 0xfd ] )
33
33
m . inStream . write ( hb )
34
34
35
35
assert . equal ( m . conStatusStr ( ) , 'Connected' )
@@ -40,8 +40,8 @@ describe('MAVLink Functions', function () {
40
40
assert . equal ( packets . length , 1 )
41
41
42
42
// check arming
43
- var hb = new Buffer . from ( [ 0xfd , 0x09 , 0x00 , 0x01 , 0x07 , 0x2a , 0x96 , 0x00 , 0x00 , 0x00 , 0x44 , 0x00 , 0x00 , 0x00 , 0x05 , 0x03 , 0x8d , 0x0d , 0x02 , 0x4c , 0x4f ] )
44
- m . inStream . write ( hb )
43
+ const hbb = new Buffer . from ( [ 0xfd , 0x09 , 0x00 , 0x01 , 0x07 , 0x2a , 0x96 , 0x00 , 0x00 , 0x00 , 0x44 , 0x00 , 0x00 , 0x00 , 0x05 , 0x03 , 0x8d , 0x0d , 0x02 , 0x4c , 0x4f ] )
44
+ m . inStream . write ( hbb )
45
45
} )
46
46
47
47
it ( '#versionSend()' , function ( done ) {
@@ -124,7 +124,7 @@ describe('MAVLink Functions', function () {
124
124
} )
125
125
126
126
udpStream . on ( 'message' , ( msg , rinfo ) => {
127
- msg . should . eql ( Buffer . from ( [ 253 , 09 , 00 , 00 , 00 , 00 , 191 , 00 , 00 , 00 , 00 , 00 , 00 , 00 , 18 , 08 , 00 , 00 , 02 , 61 , 244 ] ) )
127
+ msg . should . eql ( Buffer . from ( [ 253 , 9 , 0 , 0 , 0 , 0 , 191 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 18 , 8 , 0 , 0 , 2 , 61 , 244 ] ) )
128
128
m . close ( )
129
129
udpStream . close ( )
130
130
done ( )
@@ -146,7 +146,7 @@ describe('MAVLink Functions', function () {
146
146
} )
147
147
148
148
udpStream . on ( 'message' , ( msg , rinfo ) => {
149
- msg . should . eql ( Buffer . from ( [ 253 , 09 , 00 , 00 , 00 , 00 , 191 , 77 , 00 , 00 , 00 , 00 , 00 , 00 , 00 , 00 , 00 , 00 , 255 , 197 , 27 ] ) )
149
+ msg . should . eql ( Buffer . from ( [ 253 , 9 , 0 , 0 , 0 , 0 , 191 , 77 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 255 , 197 , 27 ] ) )
150
150
m . close ( )
151
151
udpStream . close ( )
152
152
done ( )
0 commit comments