Closed KenwoodFox closed 1 year ago
Robot just locks up with MAX cpu and requires a code restart to resume.
getHeading
and/or getTurnRate
are returning Rotation2d instead of float, and that value is being fed into the PIDController.
getHeading
and/orgetTurnRate
are returning Rotation2d instead of float, and that value is being fed into the PIDController.
Yep! This was exactly correct! Thank you so much for taking a look at in here, I knew it was a simple code issue but the way the error is produced makes it very hard to see what was causing it vs something like "PID loop doesn't have matching method for type Rotation2d"
Thanks again! Ill close the local issue but leave the commandsv2 issue open?
Yes, leave the commandsv2 issue open for now.
Strange cast error, at the moment not sure what causes it, clearly its a result of this code (since it crashes the moment you press the diff lock button)