@lzcontest/rotator
v0.1.1
Published
Transport-neutral antenna-rotator codecs, sessions, capabilities, and profiles.
Maintainers
Readme
@lzcontest/rotator
Antenna-rotator profiles, protocol codecs, commands, and deterministic sessions.
Install
npm install @lzcontest/rotatorSelect a rotator profile
import {
defaultRotatorConnectionSettings,
resolveRotatorProfile,
supportedRotatorProfiles,
} from '@lzcontest/rotator';
const profile = resolveRotatorProfile(supportedRotatorProfiles[0].id);
if (profile !== null) {
const settings = defaultRotatorConnectionSettings(profile);
console.log(profile.model, settings.maximumAzimuth);
}Core API
| Export | Purpose |
| --- | --- |
| supportedRotatorProfiles | Built-in rotator profile catalog |
| resolveRotatorProfile | Resolve a profile by ID |
| defaultRotatorConnectionSettings | Create documented connection defaults |
| validateRotatorConnectionSettings | Validate serial and timing settings |
| YaesuGs232bCodec | Encode and decode GS-232B azimuth commands |
| createRotatorSession | Bind a profile to an injected byte session |
| RotatorCommand | Query, turn, and stop commands |
