|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools |
Rating:
|
Display Modes |
|
#22
|
|||
|
|||
|
Re: Getting Familiar with Programming in WindRiver
I've been kinda confused on how to get some of the basic stuff done...
A lot of the functions that are in the WPILib seem inadequate because they don't have enough parameters to get a specific amount of data or control for a specific component, etc. I'm sure the constructors have something to do with the member functions of its class but so far, I haven't been able to make any sense or relation between the two functions. The only logical idea that I have so far goes something like this... If, for example, we have two Jaguar motors plugged into PWM 1 and 2 and we want the first motor to go half speed for two seconds and the the second motor to go full speed for three seconds... Jaguar::Jaguar(1); Jaguar::Set(0.5); Wait(2000); Jaguar::Jaguar(2); Jaguar::Set(1.0); Wait(3000); I'm pretty sure the above is wrong... Can anyone correct this? |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Programming - Getting Started | Mark McLeod | Programming | 80 | 04-16-2008 11:37 PM |
| Help Getting Started with VEX programming. | Joe Johnson | VEX | 5 | 04-16-2007 09:01 AM |
| pic: Mobot with familiar parts | jgannon | Extra Discussion | 11 | 04-24-2006 06:55 PM |
| programming motors with programming kit | BorisTheBlade | FIRST Tech Challenge | 4 | 11-01-2005 07:03 PM |
| Programming and Electronics — Getting Started | Sidney San Martín | Technical Discussion | 7 | 01-12-2005 03:25 PM |