Skip to main content

Rover

caution

This service is experimental and may change in the future.

A roving robot.

import { Rover } from "@devicescript/core"

const rover = new Rover()

Registers

reading

The current position and orientation of the robot.

  • type: Register<any[]> (packing format i16.16 i16.16 i16.16 i16.16 i16.16)

  • track incoming values

import { Rover } from "@devicescript/core"

const rover = new Rover()
// ...
rover.reading.subscribe(async (value) => {
...
})
note

write and read will block until a server is bound to the client.