Skip to main content
GET
/
device
/
stroker
/
calibration
Retrieve Stroker Calibration
curl --request GET \
  --url https://api.hapticsconnect.com/device/stroker/calibration \
  --header 'Authorization: Bearer <token>'
{
  "calib_low_position": 50,
  "calib_high_position": 50,
  "calibration_length": 100,
  "hall_low_position": 50,
  "hall_high_position": 150,
  "calib_shift": 5
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

200 - application/json

OK

The calibration information of the stroker on the device.

calib_low_position
number

The low position of the stroker in mm, stroker in physically blocked position.

Example:

50

calib_high_position
number

The high position of the stroker in mm, stroker in physically blocked position.

Example:

50

calibration_length
number

The length of the stroker in mm.

Example:

100

hall_low_position
number

The low hall sensor position in mm.

Example:

50

hall_high_position
number

The high hall sensor position in mm.

Example:

150

calib_shift
number

The shift after calibration if only encoder used, in mm.

Example:

5