Quote:
Originally Posted by xYinx161
This is team 1208's time from an elapsed time function. With default code (on the right) the time is 40 miliseconds and with our code (on the left) it is on 90 miliseconds on average. We have also included our teleop.vi. Is this a problem and if so what can we do to fix this.
|
If it's an average of 90ms, that will be a problem. It's right on the edge of the Safety vi timeout at 100ms and since it's an average nearly half will be beyond the tripping point.
I don't see anything obvious that's slowing you down, although it's easy to isolate the slowdown using Disable structures on the stand-alone blocks of code.
It looks like you are also setting your motors in two different places. Those two conflicting sets will be fighting for control of your robot when the time comes. You need a way to choose one or the other, not both at the same time.
Quote:
Originally Posted by DavidGitz
Since we are pulling the same reference (default "Left and Right Motors") and using Arcade on one mode and Tank on another mode that can be changed back and forth, could this result in the error noted above due to the Arcade/Tank difference?
|
The Arcade/Tank mixture shouldn't be a problem. They don't remember who was called last and they both reset the Safety vi.