|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Perspective on code for motors and Robot arm
Well, I thought it would be easier to be able to have two joystick controls for our robot since tank mode involves using two joystick controls, correct?
Arcade mode only uses one joystick? Last edited by Team 2524 : 17-02-2011 at 11:30. |
|
#2
|
||||||
|
||||||
|
Re: Perspective on code for motors and Robot arm
I guess I'm confused. Or you trying to drive an arm, or your drive system? The name of the Ref is "Big Arm" and "Little Arm", so I thought you are commanding motors on an arm.
|
|
#3
|
||||
|
||||
|
Re: Perspective on code for motors and Robot arm
Quote:
Drive: What mode (Tank or Arcade)? Which Joystick(s) (need 1 for Arcade, need 2 for Tank)? What PWM Channels? What type of Speed Controllers? Arm: How many Arms exactly (you referenced Big, Little Arms)? How do you want to control? (Joystick y-axis for each Arm I assume?) Which Joystick(s) control this? What PWM Channels? The more text the better. So far the issue is not enough information and cryptic posts. |
|
#4
|
|||
|
|||
|
Re: Perspective on code for motors and Robot arm
Drive: Tank Mode
Joysticks: 2 for Tank Mode Number of Arms: 2 (1 big Arm and 1 little Arm) Speed Controller: 2 Jaguars(2 motors for Big Arm) 1 Victor(Little Arm) PWM channels: 1 & 2 for Drive motors PWM channels:3 & 4 for Big Arm PWM channel: 5 for Little Arm Arm Movement: Y-Axis direction(correct me if I'm wrong) Goal: Be able to press a button to switch from Drive motors to Arm motors. I want to have each joystick control an arm. I posted the Begin.vi and Telop.vi to make it easier. Also Pictures of Big Arm and Little Arm. |
|
#5
|
|||||
|
|||||
|
Re: Perspective on code for motors and Robot arm
Tank/Arcade Drive is for robot bases.
Arm and other appendage motors are done this way: WPI robotics Library -> Robot Drive -> Advanced -> Motor Control Last edited by Mark McLeod : 17-02-2011 at 15:39. |
|
#6
|
|||
|
|||
|
Re: Perspective on code for motors and Robot arm
sorry, here is the telop vi.
|
|
#7
|
||||
|
||||
|
Re: Perspective on code for motors and Robot arm
Attached .vi will perform this. Normally I would not post code but since we are only a few days left till shipment and you are struggling with tank drive here you go. Make sure you put the code that is marked "Begin.vi" in the Begin.vi and the code that is marked "Teleop.vi" in the Teleop.vi
A few suggestions: 1) Since your Arm will be controlled by 2 motors you should use a PWM Y-Cable and only use 1 PWM Channel on the DSC. I made this assumption in the code that I wrote since we received them in the KOP. 2) Get more joysticks. I would not want to be the drive team that only has 1 person driving AND operating the arm. It can get pretty confusing and besides it will maximize your efficiency if you have 2 people on your drive team. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|