Go to Post But altering register values via bitwise operations in nested ternary commands is so much fun! - artdutra04 [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 24-02-2016, 09:27
BSV BSV is offline
FTC / FRC mentor
AKA: Travis
FRC #2723
 
Join Date: May 2013
Rookie Year: 2011
Location: Oklahoma City
Posts: 144
BSV has much to be proud ofBSV has much to be proud ofBSV has much to be proud ofBSV has much to be proud ofBSV has much to be proud ofBSV has much to be proud ofBSV has much to be proud ofBSV has much to be proud ofBSV has much to be proud of
four-motor tank drive control

Hi all,

Our programmers are trying to set up tank drive controls and are having a hard time getting all 4 drive motors to fire simultaneously. They had it working for arcade drive, but when they switched to tank control only one of the motors on each side is firing.

We are using Talon SRXs on the CAN bus.

This document:

https://docs.google.com/document/d/1...VR0yS7cqI/edit

mentions how to fire all four motors using PWM output, but it is a couple of years old and doesn't talk about CAN.

Does anyone have a more recent example of how to make this work that I can point them towards?

Thanks!
Reply With Quote
  #2   Spotlight this post!  
Unread 24-02-2016, 20:27
C.Barry C.Barry is offline
Co-Captain
AKA: Courtney
FRC #2723 (Team Rocket)
 
Join Date: Feb 2016
Rookie Year: 2012
Location: Oklahoma City
Posts: 3
C.Barry is an unknown quantity at this point
Re: four-motor tank drive control

Hello everyone,

I am one of the said programmers mentioned above and would just like to share the pictures of both our Begin.vi and out Tele-op. vi. The 2nd and 3rd motors in the CAN chain connect with the program and run smoothly, however the 1st and 4th motors do not.

Thank you!
Attached Thumbnails
Click image for larger version

Name:	IMG_0172.JPG
Views:	23
Size:	1.22 MB
ID:	20189  Click image for larger version

Name:	IMG_0173.JPG
Views:	21
Size:	1.31 MB
ID:	20190  

Last edited by C.Barry : 24-02-2016 at 21:21.
Reply With Quote
  #3   Spotlight this post!  
Unread 24-02-2016, 20:56
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: four-motor tank drive control

Any particular reason you don't combine and simplify everything into one Open 4 Motor drive?

In Teleop.vi you should not be Opening your xBox joystick 50 times a second.
You are Opening the same joystick over and over again confusing the system.
Just use Joystick 0 in Teleop.vi just like you are using Right Motors.

Begin.vi is only called once and is used to open (once) all the devices you will be using elsewhere.
Teleop.vi gets called 50 times a second to handle the constantly changing commands coming from the drivers.
Attached Thumbnails
Click image for larger version

Name:	Open4Motor.png
Views:	28
Size:	36.2 KB
ID:	20191  
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 24-02-2016 at 21:20.
Reply With Quote
  #4   Spotlight this post!  
Unread 24-02-2016, 21:24
C.Barry C.Barry is offline
Co-Captain
AKA: Courtney
FRC #2723 (Team Rocket)
 
Join Date: Feb 2016
Rookie Year: 2012
Location: Oklahoma City
Posts: 3
C.Barry is an unknown quantity at this point
Re: four-motor tank drive control

Thank you very much, Mark McLeod.

I was unsure if I could use the Open 4 Motors, as I was under the impression that I needed two refnum names (one for each axis). I did not know you could still use one refnum name and wire the code blocks like that.

Sincerely,
Courtney Barry
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 20:25.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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