Add ability to get/set mag calibration data

This commit is contained in:
Konstantin Sharlaimov (DigitalEntity) 2015-07-31 23:03:55 +10:00
parent 7af3d57606
commit a30897c440
1 changed files with 4 additions and 0 deletions

View File

@ -499,6 +499,10 @@ const clivalue_t valueTable[] = {
{ "blackbox_rate_denom", VAR_UINT8 | MASTER_VALUE, &masterConfig.blackbox_rate_denom, 1, 32 },
{ "blackbox_device", VAR_UINT8 | MASTER_VALUE, &masterConfig.blackbox_device, 0, 1 },
#endif
{ "magzero_x", VAR_INT16 | MASTER_VALUE, &masterConfig.magZero.raw[X], -32768, 32767 },
{ "magzero_y", VAR_INT16 | MASTER_VALUE, &masterConfig.magZero.raw[Y], -32768, 32767 },
{ "magzero_z", VAR_INT16 | MASTER_VALUE, &masterConfig.magZero.raw[Z], -32768, 32767 },
};
#define VALUE_COUNT (sizeof(valueTable) / sizeof(clivalue_t))