Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   how to add drive motors? (http://www.chiefdelphi.com/forums/showthread.php?t=91290)

Ian McShane 08-02-2011 19:23

how to add drive motors?
 
need to add 2 drive motors to all vi's. how do i do this, how do i hook up the jaguars in the block diagram, how do i tell it which jaguar to look for in the arcade drive block. diagrams would be helpfull:)

Mark McLeod 08-02-2011 20:19

Re: how to add drive motors?
 
Do you mean that you have 2 motor drive and you want to make it a 4 motor drive (2 motors per side)?

Ian McShane 09-02-2011 18:10

Re: how to add drive motors?
 
yep

Mark McLeod 09-02-2011 18:45

Re: how to add drive motors?
 
That's pretty simple.
You only need to modify the use of one icon in Begin.vi.
  1. Open Begin.vi, then the block diagram
  2. Locate the Open 2 Motor icon.
  3. Right-click on Open 2 Motor and go to Replace -> All Palettes -> WPI Robotics Library -> RobotDrive and choose Open 4 Motor
  4. Delete the two PWM settings left over to cleanup the labels.
  5. Add constants for all four input nodes and set them to your other two motors.
  6. Right-click on each of the PWM inputs, go to Visible Items -> Label and let go. The name of the input will appear and you might want to drag it to the left side of the PWM constant.
  7. Set the PWMs to match where your 4 motors are.
  8. Create constants for the two Inverted nodes on the bottom of the Open 4 Motor icon.
  9. Set both the motors on one side of the robot be Inverted. If you guess wrong and the robot drives backwards instead of forwards, just go back into the code and reverse which side gets Inverted.


All times are GMT -5. The time now is 09:18.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi