Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Add support for Autopilot API #31

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

panaaj
Copy link
Member

@panaaj panaaj commented Dec 1, 2023

Add support for Autopilot API.

This PR is to assist in the development of the Autopilot API, specifically for interacting with autopilots via NMEA2000 / SeaTalk.

  • Register as autopilot provider
  • Action requests via API endpoints.
  • Update API with changes originating from autopilot device.
  • Update API with alarm notifcations.
  • Integrate with NMEA2000 stream events.
  • Integrate with SeaTalk stream events.

@panaaj panaaj marked this pull request as draft December 1, 2023 05:50
@panaaj panaaj marked this pull request as ready for review November 30, 2024 05:36
@panaaj
Copy link
Member Author

panaaj commented Nov 30, 2024

@sbender9 This PR adds some initial support for the Autopilot API by:

  1. Registering the plugin as an Autopilot provider
  2. Defining request handlers that call the existing plugin methods for setting mode, state, target, etc.
  3. Establish an N2k stream handler to trigger updates to the Autopilot API for changes in the AP status.

Testing has been via the log files you provided me a while ago.... needless to say I have only been able to test incoming messages and not commands sent to the AP.

As I don't have access to the AP devices supported by this plugin I was hoping you could assist.

The goal is to have a pattern for creating plugins to operate N2K pilots.
I'm not sure the approach I have used is necessarily the correct one so am keen to work through this as required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant