View Single Post
  #2   Spotlight this post!  
Unread 05-02-2017, 22:51
Bkeeneykid's Avatar
Bkeeneykid Bkeeneykid is offline
#wheatcoastneatcoast
AKA: Devin Keeney
FRC #1982 (Cougar Robotics); Season Long Fantasy FIRST (F3)
Team Role: Leadership
 
Join Date: Feb 2015
Rookie Year: 2015
Location: Lenexa, Kansas
Posts: 369
Bkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud of
Re: Need help with coding issue

Quote:
Originally Posted by Kage2416 View Post
My team's robot has two different ways of scoring, one on one side, "the front", and one on the other side, "the back." The reason I put those in quotation marks is due to the fact that both sides may be considered the front of the robot. Our question is, how can we flip the coding of the robot so we can easily switch from one side of the robot being controlled by moving forward on the remote, to the other side being controlled like that. It's mainly so the drive team has an easier way of controlling the robot in the case that we cannot use one way to score. Any help would be appreciated.
You can simply have a command that just outputs a variable that switches between the straight output of your joystick or the reversed axis of your joystick that you want to oppose. Then plug this variable into your drive class.
__________________

F4 Network Website Designer

2010-2012: A Whole Buncha FLL Teams; Team Spirit, Gracious Professionalism Award winner
2015-Current: FRC 1982, Captain, Electrical Lead
Beginning FIRST Volunteer

Moderator on the FIRSTwiki
Reply With Quote