Interface MovementSensor

Represents any sensor that reports information about the robot's direction, position, and/or speed.

Hierarchy

Implemented by

Properties

doCommand: ((command: StructType) => Promise<StructType>)

Type declaration

Methods

  • Get the accuracy of various sensors

    Parameters

    Returns Promise<Record<string, number>>

  • Get the compass heading, which is a number from 0-359 where 0 is North, 90 is East, 180 is South, and 270 is West

    Parameters

    Returns Promise<number>

  • Return the readings of a sensor.

    Parameters

    Returns Promise<Record<string, unknown>>

Generated using TypeDoc