The SOH Plane model is not producing airspeed readings and consequently, the vehicle is unable to be armed.
I set the following parameters to make the aircraft use the simulated airspeed sensor for control:
ARSPD_TYPE 100
ARSPD_PIN 1
, but it instead results in the error shown below:
You need to do preflight airspeed calibration.
Why use SIH? SITL is much more convenient and supports much better physics simulation.
But how do I perform preflight calibration on a simulated sensor? When I launch SITL with the airspeed sensor, I am not prompted to calibrate the sensor.
Strangely, when I disable the preflight check using ARSPD_SKIP_CAL, the error changes to Airspeed 1 not healthy.
I am using SIH because I want to also test the functionality of a custom actuator that depends on the airspeed readings.
The same way you would do a real one, ensure there is no airflow around the sensor (AKA 0 wind or movement) and do preflight calibration.
Fair though I would rather do actuator and control algorithm testing separately. You can provide alternate control variable source (fake airspeed value) in your driver for ground testing.