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

Additional Actions #973

Closed
wants to merge 50 commits into from
Closed

Additional Actions #973

wants to merge 50 commits into from

Conversation

wotalota
Copy link
Contributor

Extending the rolloffindi driver to be able to set additional Actions via the remote controller. The additional actions are most likely non roof related relays.

The driver user interface always provides eight switches and labels for the switches whether or not they are used. Action on/off commands and requests status will only be sent to the controller if the controller indicates upon connection that it wants to receive them. This is to allow existing controller installs to continue working with an updated driver.

Updated Arduino examples that request the additional actions have been included.
New Arduino examples include.

  • Actions used to set relays one that responds to status request and one does not.
  • Open/Close roof commands that use 2 linear actuators in unison plus an action.
  • Open/Close working a variable speed DC motor.
  • A standard example that is action enabled but no actions used
  • The previous standard example retained to prove old controller with new driver.

@knro
Copy link
Collaborator

knro commented Sep 11, 2024

Thank you! Please consider the following:

  1. Use new style INDI Properties. i.e. INDI::PropertySwitch, INDI::PropertyNumber and so forth.
  2. Use INDI::OutputInterface and INDI::InputInterface for any digital or analog IO sensors. You can checkout INDI GPIO driver as an example reference.

@wotalota
Copy link
Contributor Author

wotalota commented Sep 11, 2024 via email

@knro
Copy link
Collaborator

knro commented Sep 12, 2024

There shouldn't be any change on the driver side communication wise. You don't have to use INDI ROR interface at this stage, but implementing the INDI::OutputInterface and INDI::InputInterface would be highly beneficial and would even make this driver reusable by other drivers.

@wotalota
Copy link
Contributor Author

wotalota commented Sep 12, 2024 via email

@knro
Copy link
Collaborator

knro commented Sep 12, 2024

Sure

@knro knro closed this Sep 12, 2024
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.

2 participants