mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-11 17:13:56 -03:00
autotest: fixed ICE tests to use an IC engine
we need to use quadplane-ice or plane-ice to get a simulated IC engine the test was just using an electric motor
This commit is contained in:
parent
3abdc6ad25
commit
ee003d7eee
@ -795,13 +795,16 @@ class AutoTestQuadPlane(AutoTest):
|
||||
'''Test ICE Engine support'''
|
||||
rc_engine_start_chan = 11
|
||||
self.set_parameters({
|
||||
'SERVO13_FUNCTION': 67, # ignition
|
||||
'SERVO14_FUNCTION': 69, # starter
|
||||
'ICE_ENABLE': 1,
|
||||
'ICE_START_CHAN': rc_engine_start_chan,
|
||||
'ICE_RPM_CHAN': 1,
|
||||
'RPM1_TYPE': 10,
|
||||
})
|
||||
model = "quadplane-ice"
|
||||
|
||||
self.customise_SITL_commandline(
|
||||
[],
|
||||
model=model,
|
||||
defaults_filepath=self.model_defaults_filepath(model),
|
||||
wipe=False)
|
||||
|
||||
self.reboot_sitl()
|
||||
self.wait_ready_to_arm()
|
||||
self.wait_rpm(1, 0, 0, minimum_duration=1)
|
||||
@ -831,13 +834,17 @@ class AutoTestQuadPlane(AutoTest):
|
||||
'''Test ICE Engine Mission support'''
|
||||
rc_engine_start_chan = 11
|
||||
self.set_parameters({
|
||||
'SERVO13_FUNCTION': 67, # ignition
|
||||
'SERVO14_FUNCTION': 69, # starter
|
||||
'ICE_ENABLE': 1,
|
||||
'ICE_START_CHAN': rc_engine_start_chan,
|
||||
'ICE_RPM_CHAN': 1,
|
||||
'RPM1_TYPE': 10,
|
||||
})
|
||||
model = "quadplane-ice"
|
||||
|
||||
self.customise_SITL_commandline(
|
||||
[],
|
||||
model=model,
|
||||
defaults_filepath=self.model_defaults_filepath(model),
|
||||
wipe=False)
|
||||
|
||||
self.reboot_sitl()
|
||||
self.load_mission("mission.txt")
|
||||
self.wait_ready_to_arm()
|
||||
self.set_rc(rc_engine_start_chan, 2000)
|
||||
|
Loading…
Reference in New Issue
Block a user