|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Autonomous Programming
This is what we're trying to do:
Use the optical encoder, in place of a joystick, to control the motors, by setting the motors to perform different actions when the encoder gives back a certain reading. How exactly would we go about doing this? |
|
#2
|
||||
|
||||
|
When I was programming our autonomous I used the Delay and Feed block under the watchdog blocks and just passed the Error reference in between the bits of code I wanted to have execute. I'll try to post a example of this as soon as I can.
|
|
#3
|
|||||
|
|||||
|
Re: Autonomous Programming
Use the encoder value as the input to a case statement. Name the cases as ranges like "0..2499" and "2500..6999", and set the motors appropriately in each case.
Either put the whole thing in a while loop, or use Autonomous Iterative which calls your code repeatedly. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| autonomous programming | solomason519 | NI LabVIEW | 4 | 10-03-2009 12:30 |
| CMUcam autonomous programming | kshot | Programming | 1 | 17-01-2005 19:18 |
| Autonomous Programming Guide | cbolin | Programming | 2 | 16-12-2004 15:13 |
| Autonomous programming | Dush | Programming | 4 | 20-02-2003 09:54 |
| autonomous sensor programming ? | Laura_d | Programming | 1 | 10-02-2003 17:46 |