@nw01/rayneo-bearing
v0.0.10
Published
Bearing capabilities plugin
Readme
@nw01/rayneo-bearing
Bearing capabilities plugin
Install
npm install @nw01/rayneo-bearing
npx cap syncAPI
start()
start() => Promise<void>Start listening to bearing updates.
stop()
stop() => Promise<void>Stop listening to bearing updates.
addListener('bearingUpdate', ...)
addListener(eventName: 'bearingUpdate', listenerFunc: (data: BearingData) => void) => Promise<void>Listen for updates to bearing.
| Param | Type |
| ------------------ | ---------------------------------------------------------------------- |
| eventName | 'bearingUpdate' |
| listenerFunc | (data: BearingData) => void |
removeAllListeners()
removeAllListeners() => Promise<void>Remove all listeners.
Interfaces
BearingData
| Prop | Type |
| --------------- | ------------------- |
| azimuth | number |
| direction | string |
