Code error

We’re having an error when we deploy the code. The status light for the Robot Code is flashing off and on the error we are getting is below. Posting again with code included.

ERROR  1  Unhandled exception: edu.wpi.first.hal.util.UncleanStatusException: Code: -1029. HAL: Resource already allocated  frc.robot.model.StarTalonSRX.(StarTalonSRX.java:34)

Any help you can provide is much appreciated.

Is there a reason I cant post a github link?

I’ve seen this error when trying to create motor controllers with the same ID multiple times. Maybe try checking your other motor controllers and see if any of the IDs are the same as the one you’re interacting with when this error occurs…

As @1768-Control said, that error means your code is creating multiple objects with the same ID (CAN, PWM, DigitalIO, etc).

As for not posting links, I’m not sure. I know discourse has limitations for new users, so maybe it’s that

New accounts are limited on how many links they can post, to cut down on spam. Should be in the clear on that now (and if not, mods can clear the posts with some patience).

But since this thread is a duplicate of this thread, I’m closing this thread. :slight_smile: