AP_Compass: SITL: use new scale param

This commit is contained in:
Iampete1 2021-11-02 15:33:28 +00:00 committed by Randy Mackay
parent 071ff39ff8
commit 2fa2e70e7e

View File

@ -37,9 +37,9 @@ AP_Compass_SITL::AP_Compass_SITL()
// we want to simulate a calibrated compass by default, so set
// scale to 1
AP_Param::set_default_by_name("COMPASS_SCALE", 1);
AP_Param::set_default_by_name("COMPASS_SCALE2", 1);
AP_Param::set_default_by_name("COMPASS_SCALE3", 1);
AP_Param::set_default_by_name("COMPASS1_SCALE", 1);
AP_Param::set_default_by_name("COMPASS2_SCALE", 1);
AP_Param::set_default_by_name("COMPASS3_SCALE", 1);
// make first compass external
set_external(_compass_instance[0], true);