Skip to main content
Skip table of contents

IMUController

Last updated: 2025/3/7 10:56:5

Path To

Name

Description/Function

/api/imu

/ishorizontal

Gets a value indicating whether the orientation is horizontal.

/api/imu

/zero

Gets the IMU Zero.

/api/imu

/set/zero

Sets IMU to zero.

/api/imu

/reset

Reset the IMU zero point.

/api/imu

/vertical

Set the IMU to vertical orientation.

/api/imu

/horizontal

Set the IMU to horizontal orientation.

/ishorizontal

Function

Gets a value indicating whether the orientation is horizontal.

Method

Get

Response

True or false.

Example

CODE
$ curl http://IP_ADDRESS:8080>/api/imu/ishorizontal

/zero

Function

Gets the IMU Zero.

Method

Get

Response

IMU zero value.

Example

CODE
$ curl http://IP_ADDRESS:8080>/api/imu/zero

/set/zero

Function

Sets IMU to zero.

Method

Get

Response

Status code 200, for an completed operation being preformed.

Example

CODE
$ curl http://IP_ADDRESS:8080>/api/imu/set/zero

/reset

Function

Reset the IMU zero point.

Method

Get

Response

Status code 200, for an completed operation being preformed.

Example

CODE
$ curl http://IP_ADDRESS:8080>/api/imu/reset

/vertical

Function

Set the IMU to vertical orientation.

Method

Get

Response

Status code 200, for an completed operation being preformed.

Example

CODE
$ curl http://IP_ADDRESS:8080>/api/imu/vertical

/horizontal

Function

Set the IMU to horizontal orientation.

Method

Get

Response

Status code 200, for an completed operation being preformed.

Example

CODE
$ curl http://IP_ADDRESS:8080>/api/imu/horizontal
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.