mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
autotest: ensure cached sim time moves forward in frsky test
This commit is contained in:
parent
efb576292f
commit
d9aa334489
@ -6317,8 +6317,6 @@ switch value'''
|
||||
self.progress("validating params (0x%02x)" % value)
|
||||
param_id = self.bit_extract(value,24,4)
|
||||
param_value = self.bit_extract(value,0,24)
|
||||
if param_id != 1:
|
||||
return False
|
||||
frame_type = param_value
|
||||
hb = self.mav.recv_match(
|
||||
type='HEARTBEAT',
|
||||
@ -6328,7 +6326,9 @@ switch value'''
|
||||
if hb is None:
|
||||
raise NotAchievedException("Did not get HEARTBEAT message")
|
||||
hb_type = hb.type
|
||||
self.progress("HEARTBEAT type==%f frsky==%f" % (hb_type, frame_type))
|
||||
self.progress("validate_params: HEARTBEAT type==%f frsky==%f param_id=%u" % (hb_type, frame_type, param_id))
|
||||
if param_id != 1:
|
||||
return False
|
||||
if hb_type == frame_type:
|
||||
return True
|
||||
# FIXME: need to check other values as well
|
||||
|
Loading…
Reference in New Issue
Block a user