svc=unit/update_accelerometers_calibration¶ms={"itemId":<long>, "timeFrom":<uint>, "timeTo":<uint>}
or
svc=unit/update_accelerometers_calibration¶ms={"itemId":<long>, "reset":<bool>}
Param | Description |
---|---|
itemId | unit id |
timeFrom | calibration period start |
timeTo | calibration period end |
reset | reset accelerometer calibration; 1 - reset |
{ "acceleration": /* acceleration calibration coefficients */ { "coef_x":<double>, /* coefficient by x-axis */ "coef_y":<double>, /* coefficient by y-axis */ "coef_z":<double>, /* coefficient by z-axis */ "cos":<double>, /* cosine of angle between theoretical and extimated axis */ "sin":<double> /* sine of angle between theoretical and extimated axis */ }, "brake":{ ... }, /* brake calibration coefficients */ "turn":{ ... }, /* turn calibration coefficients */ "vertical":{ ... }, /* vertical axis calibration coefficients */ "crc":<uint>, /* accelerometer sensors check sum */ "dateinput":<uint> /* calibration date */ }
If failed to calibrate accelerometer or succeed to reset calibration then
{ "error":0 }
|