FIRST Robotics Competition Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

What are we doing wrong?

So we are trying to get our robot to do 3 things.  pick up balls, shoot, and suck the up through a convaire belt system.  The drive is a pid car drive system that works well till you put it with shooting and picking up balls.  The shooter works for a fraction of a second and than stops till the next ball is in place.  The suck just goes for X amount of time.  We put these parts in the basic framework and the result is the same.  You can do one of them and if you get 2 of them to work they don't work right of just don't work at all.  The shooter and suck start by microswitches on the DIO ports.  We have tried this is a statemachine tonight and that didn't work.  Can somebody tell me an easy way to do this or send me example code of some sort to look at and figure out what I have to do?

0 Kudos
Message 1 of 2
(4,978 Views)

Hi,

You're probably going to have to be a lot more descriptive than that.  How is your program structured?  Do you have three separate tasks running in parallel, or are you scheduling them through a state machine?  Do they work properly one at a time?  When you add a second, what happens?  What interaction do you have between the tasks?  Are they fairly independent, or are they accessing a lot of the same variables or hardware?

Regards,

JeremyB
Applications Engineer
National Instruments

Regards,

Jeremy_B

Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,475 Views)