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

Feature Request: Firmware reports limitations #66

Open
troywweber7 opened this issue Dec 28, 2016 · 2 comments
Open

Feature Request: Firmware reports limitations #66

troywweber7 opened this issue Dec 28, 2016 · 2 comments

Comments

@troywweber7
Copy link

This is a minor feature request, but as I have been dealing with the stepper side of things, it has come to my attention that perhaps it would be useful if the firmware were to report the maximum number of steppers allowed, similar to how it reports the number of pins on the board and the limitations of said pins. In Stepper 1.0 protocol the max is 6. In Stepper 2.0 protocol, the max is 10. If someone daring enough (and I just might know someone) decides to run more than 10 steppers on an Arduino by changing the constant in the C++ code, then this constant should probably be reported to the firmata.js side to be used in issuing warnings or in error handling.

I would mark this as a feature request or an enhancement, but I don't know how.

@soundanalogous
Copy link
Member

I think this should be handled by the Firmata client (firmata.js in your case) rather than the firmware. The client developer should be familiar with the protocol and defined limitations.

@soundanalogous
Copy link
Member

Another more ambitious way to handle this would be to have the max number of steppers determined by available ram on the target microcontroller, then it would make sense for the firmware to report this value back. I'm not even sure that 10 steppers is realistic for all boards. It likely isn't for an Uno or Leonardo (2k and 2.5k RAM respectively) especially if several other features are enabled.

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

No branches or pull requests

2 participants