Go to Post And those who DO know won't talk, even for Krispy Kremes. - DonRotolo [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 25-01-2017, 16:58
galaxygaleas galaxygaleas is offline
Registered User
AKA: Jillian
FRC #3229 (Hawktimus Prime)
Team Role: Programmer
 
Join Date: Jun 2016
Rookie Year: 2015
Location: United States
Posts: 6
galaxygaleas is an unknown quantity at this point
Arcade Drive Xbox Controller Drive Train

We have four talon motors, two on each side of the chassis and would like to code all movement to be on the left joystick of an Xbox Controller. We have been having issues and aren't really sure how to do so. Most posts and steps only account for two motors, not sure how to have arcade drive with four.
Reply With Quote
  #2   Spotlight this post!  
Unread 25-01-2017, 17:30
GeeTwo's Avatar
GeeTwo GeeTwo is online now
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,688
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: Arcade Drive Xbox Controller Drive Train

Assuming you have a regular skid steer drive train with two motors on each gearbox, just duplicate all of the code for the existing motors and change the object names to the new controllers (e.g. by appending a 2 to the name). Then in the motor initialization code, make sure you change the addresses to the second talons on each side. If this isn't clear, post your code and we can be more specific. (There are so many variables of motor controller type, CAN vs PWM, etc.)
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.
Reply With Quote
  #3   Spotlight this post!  
Unread 25-01-2017, 18:37
david.e.boles david.e.boles is offline
Bringer of Whales and Petunias
AKA: david476
FRC #5940 (BREAD)
Team Role: Leadership
 
Join Date: Dec 2015
Rookie Year: 2011
Location: San Francisco, CA
Posts: 30
david.e.boles is on a distinguished road
Re: Arcade Drive Xbox Controller Drive Train

The other option, assuming your ESC has it, is to use a follower mode (9.1). Any other help is really dependent on your code.
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 13:24.

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