Hello, my drivetrain code is not working. I am trying to code a 6-motor drivetrain using c++. It is saying there is an unknown type name and that something else is wrong. Please help.
That code can not be put out in the open (not under a function) in c++. Moving the lines with errors under pre auton should solve your problem.
In addition, no need to use setMaxTorque at 100% as that’s the default for all motors. Also, move away from the use of setVelocity programming pattern, send velocity as part of the drive or spin commands.
2 Likes