OCCRA
Go to Post Besides, all the FIRSTers that I know - are children at heart. - JaneYoung [more]
Home
Go Back   Chief Delphi > Technical > Programming > Python
CD-Media  
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 02-08-2018, 05:47 PM
Zamula Zamula is offline
Registered User
no team
 
Join Date: Feb 2018
Location: Alabama
Posts: 4
Zamula is an unknown quantity at this point
Scale Color

Hello,
I am trying to make some autonomous code that will make the robot drop a box on the scale in autonomous mode. Is there a certain function that I should use to make the robot know which side of the scale is what color?
Any help would be greatly appreciated.
Reply With Quote
  #2   Spotlight this post!  
Unread 02-08-2018, 09:18 PM
virtuald's Avatar
virtuald virtuald is offline
RobotPy Guy
AKA: Dustin Spicuzza
FRC #6367 (), FRC #7240 ()
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,409
virtuald has a reputation beyond reputevirtuald has a reputation beyond reputevirtuald has a reputation beyond reputevirtuald has a reputation beyond reputevirtuald has a reputation beyond reputevirtuald has a reputation beyond reputevirtuald has a reputation beyond reputevirtuald has a reputation beyond reputevirtuald has a reputation beyond reputevirtuald has a reputation beyond reputevirtuald has a reputation beyond repute
Re: Scale Color

Quote:
Originally Posted by Zamula View Post
Hello,
I am trying to make some autonomous code that will make the robot drop a box on the scale in autonomous mode. Is there a certain function that I should use to make the robot know which side of the scale is what color?
Any help would be greatly appreciated.
According to the wpilib screensteps information (https://wpilib.screenstepslive.com/s...-data-details), there is a function in DriverStation that will return this information.
__________________
Maintainer of RobotPy (Python for FRC) & WPILib Contributor
Creator of pyfrc (Robot Simulator + utilities for Python), pynetworktables/pynetworktables2js (NetworkTables for Python & Javascript), and lots more...

Team #1418 (remote mentor): Newton Quarterfinalists, 2016 Chesapeake District Champion, 2x Innovation in Control award, 2x district event winner
Team #1418: 2015 DC Regional Innovation In Control Award, #2 seed; 2014 VA Industrial Design Award; 2014 Finalists in DC & VA
Team #2423: 2012 & 2013 Boston Regional Innovation in Control Award


Resources: FIRSTWiki (relaunched!) | My Software Stuff
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 05:26 AM.

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


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi