Beispiel #1
0
 def test_float_pack_int(self):
     self.assertEqual(parameters.Float._pack(10), str(repack_to_int(10.0)).encode())
Beispiel #2
0
 def _pack(value):
     return str(repack_to_int(value)).encode()
Beispiel #3
0
 def test_float_pack_int(self):
     self.assertEqual(
         parameters.Float._pack(10),
         str(repack_to_int(10.)).encode(),
     )
Beispiel #4
0
 def test_mdot8(self):
     '''
     According to ARDrone Developer Guide chapter 6.3,
     -0.8 can be considered as holding the 32-bit integer value −1085485875
     '''
     self.assertEqual(repack_to_int(-0.8), -1085485875)