|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools |
Rating:
|
Display Modes |
|
#5
|
|||||
|
|||||
|
Re: I'm trying not to hate labview but...
Quote:
It's funny. I actually find the "advanced" template easier to understand, because all the stuff isn't crammed on one page. The use of sub-vis heps to compartmentalize my understanding of the process. However, back to SparrowKC's original question... I think everyone is missing the easy way to do this. How many wheel's you got? 4 probably.. so start out by changing the "Open 2 Wheels" VI to "Open 4 wheels". You can do this simply by right clicking on the VI and selecting "Replace". Go ahead and specify the other 2 PWM channels and wheel directions. OK, now your device reference cluster holds references for 4 wheels. You want to roll your own drive code.... no problem. Just don't use the standard Drive VIs. You can access the refs in the cluster and do your own motor control.... how? Just look inside the canned drive VI's (eg: Drive:ArcadeDrive) by double clicking them, and pulling up the Block Diagrams. There's lots of flexibility built into them, so you may have to go a couple of levels deep to see the basic wheel control code, but a really good sample is found in RobotDrive:Motors.vi Basically you use Drive:GetPwmRef, and then pass the ref to Motor:SetSpeed. Now you have total freedom to roll your own code, with very little hacking of existing globals. Last edited by PhilBot : 19-12-2008 at 16:21. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| I'm Trying to Mirror a Rig | Popper99 | 3D Animation and Competition | 3 | 09-02-2008 20:17 |
| pic: i'm on the loose, but.. | thatphotochick | Extra Discussion | 4 | 22-05-2006 17:31 |
| frc_camera not working but labview does | Issues | Programming | 7 | 18-01-2006 19:23 |
| Some things i'm trying to understand on Kevin's Accelerometer Code | Squall | Programming | 2 | 03-02-2005 12:01 |
| I'm trying to contact Teams 234 and 269... | archiver | 2001 | 1 | 24-06-2002 03:23 |