Cansparkmax is undefined

Any help would be amazing thank you

Docs are your friend. The class exists, but that specific constructor doesn’t. You need to use one that does.

https://codedocs.revrobotics.com/java/com/revrobotics/cansparkmax#constructor.detail

follow the above advice to guide you out of future issues

in this situation, your likely solution is to add the controltype as the second argument, but reading the docs would have gotten you an answer faster

thank you never new this existed

Just for future reference, it’s linked to in the REV docs here, under the “Documentation” column: REVLib for SPARK MAX - REV ION Brushless