Command disabled: backlink

Update accelerometer calibration parameters

outdated request, not used now

svc=unit/update_accelerometers_calibration&params={"itemId":<long>,
                                                   "timeFrom":<uint>,
                                                   "timeTo":<uint>}

or

svc=unit/update_accelerometers_calibration&params={"itemId":<long>,
                                                   "reset":<bool>}

Parameters

ParamDescription
itemId unit id
timeFrom calibration period start
timeTo calibration period end
reset reset accelerometer calibration; 1 - reset

Response

{
     "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
}
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2024 Gurtam