Skip to content
This repository has been archived by the owner on Dec 7, 2024. It is now read-only.

restoreFactoryDefaults() is placed after parameters in SPARK MAX sample code #32

Open
rowan-asher opened this issue May 8, 2023 · 0 comments

Comments

@rowan-asher
Copy link

restoreFactoryDefaults() is called AFTER init and setting motor type to brushless in sample code, as seen here.

This implies (to many students/customers) that they can set all parameters prior to restoring defaults because the sample code does not specify that brushed/brushless is a parameter that is retained upon reset.
Sample code (ALL examples) needs to be updated to have parameters set AFTER calling restoreFactoryDefaults(), even if parameters are retained, as it is causing major issues for teams who put all parameters in one place.

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

No branches or pull requests

1 participant