mavlink: parameters manually mark active minimal QGC set on first send

This commit is contained in:
Daniel Agar
2020-12-27 13:54:03 -05:00
committed by GitHub
parent 4b0d8efbc1
commit 409ea2ac02
4 changed files with 34 additions and 28 deletions
@@ -48,18 +48,6 @@ VehicleMagnetometer::VehicleMagnetometer() :
ModuleParams(nullptr),
ScheduledWorkItem(MODULE_NAME, px4::wq_configurations::nav_and_controllers)
{
char str[20] {};
for (int mag_index = 0; mag_index < MAX_SENSOR_COUNT; mag_index++) {
// CAL_MAGx_ID
sprintf(str, "CAL_%s%u_ID", "MAG", mag_index);
param_find(str);
// CAL_MAGx_ROT
sprintf(str, "CAL_%s%u_ROT", "MAG", mag_index);
param_find(str);
}
param_find("CAL_MAG_SIDES");
param_find("CAL_MAG_ROT_AUTO");