Hey all,
I am trying to inalize code for championships. My team leaves later today (Monday), and our shooter, which was working earlier, now will not. I am running CAN on it, speed control with an encoder.
I know the electronics are right, as it will run properly in a different project. But in my LabVIEW project containing our actual drive code, I get this:
“error code 1:
Dequeue element in acquire semaphore.vi:1->WPI_CAJaguar_SetTransaction.vi:28->WPI_MotorControlSetOutput.vi:9->Periodic Tasks.vi->Robot Main.”
I would post my code, but I’m typing this post from my phone as our build site has no Internet access.
What I can tell you is that the jag runs perfectly fine with what I believe to be identical code in a different project. It is the only jag in the circuit, firmware 101, off the can bus, we are not using 2CAN.
It is output to in periodic tasks, on a 20ms delay. I can’t figure out what the problem could be, and I only have a vague idea of what the error actually is. I understand the concept of a semaphore, but I don’t know where I should or shouldn’t be setting one.
Any help would be much appreciated, I only have today to get this working before we leave for St. Louis.