起飞飞机在 SITL:校准失败

Takeoff plane in SITL: calibration fails

我正在使用 DroneKit 测试 SITL,但我似乎无法让飞机起飞。当我执行 arm throttle 时,控制台显示:

APM: PreArm: 3D accel cal needed

我尝试 运行 accelcal,它要求我像这样校准平面:

APM: Place vehicle level and press any key.
APM: Place vehicle on its LEFT side and press any key.
APM: Place vehicle on its RIGHT side and press any key.
APM: Place vehicle nose DOWN and press any key.
APM: Place vehicle nose UP and press any key.
APM: Place vehicle on its BACK and press any key.
APM: AccelRange: 0.0 0.0 0.0
APM: Insufficient accel range
APM: AccelRange: 0.0 0.0 0.0
APM: Insufficient accel range
APM: Calibration FAILED

如何在 SITL 中校准我的飞机?

我找到了解决方案 here。我实际上必须先加载飞机的参数:

param load ../Tools/autotest/ArduPlane.parm

我不得不这样做一次,现在它们是自动加载的。