nexstar 0.0.2 copy "nexstar: ^0.0.2" to clipboard
nexstar: ^0.0.2 copied to clipboard

Nexstar astronomy protocol command factory and parser.

Features #

Creating Nexstar commands to send them to the telescope and parsing the responses.

Getting started #

install by adding the package to your pubspec.yaml file or by command

pub add nexstar

Usage #

Most commands are implemented in the NexstarCommandFactory class. Use it to build the command you want to send to the telescope.

This example shows how to send a command to the telescope to move to a specific RA/DEC position.

import 'package:nexstar/nexstar.dart';

void main() {
  NexstarCommand cmd=NexstarCommandFactory.buildGotoRaDecCommand(10, 88, false);
  print("Send to telescope: {$cmd.commandData}");
  VoidResponse response = cmd.parseResponse("#") as VoidResponse;
  print("Response success: ${response.success}");
}

Additional information #

As this package is a work in progress, the command set can be not complete. Please refer to the NexStar Communication Protocol commands list for more information. Any questions can be asked by email: spin7ion@gmail.com or by opening an issue on the GitHub repository.

1
likes
130
points
22
downloads

Publisher

verified publisher7ion.ru

Weekly Downloads

Nexstar astronomy protocol command factory and parser.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

sprintf

More

Packages that depend on nexstar