@arvaintelligence/compass
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

@arvaintelligence/compass

Read from device sensors to extract true north azimuth

Install

npm install @arvaintelligence/compass
npx cap sync

API

streamCompassHeading(...)

streamCompassHeading(options: StreamCompassOptions, callback: StreamCompassCallback) => Promise<void>
Param Type
options StreamCompassOptions
callback StreamCompassCallback

stopCompassStream()

stopCompassStream() => Promise<BaseResponse>

Returns: Promise<BaseResponse>


readCompassHeading()

readCompassHeading() => Promise<AzimuthResponse>

Returns: Promise<AzimuthResponse>


Interfaces

StreamCompassOptions

Prop Type
interval number

AzimuthResponse

Prop Type
trueNorthAzimuth number

BaseResponse

Prop Type
ok boolean
msg string

Type Aliases

StreamCompassCallback

(success: AzimuthResponse, error?: any): void

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.42latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.42
1.0.30

Package Sidebar

Install

npm i @arvaintelligence/compass

Weekly Downloads

2

Version

1.0.4

License

MIT

Unpacked Size

33.8 kB

Total Files

27

Last publish

Collaborators

  • andrew-lyons