Go to Post Everyone better enjoy the broadcast, Dave had to cancel a shuttle launch to make it happen :D - The Lucas [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 08-04-2015, 17:02
DrWateryCat DrWateryCat is offline
Registered User
AKA: Kenny Raisbeck
FRC #2186 (Dogs of Steel)
Team Role: Programmer
 
Join Date: Apr 2015
Rookie Year: 2011
Location: Centreville, VA
Posts: 3
DrWateryCat is an unknown quantity at this point
RoboRIO as I2C slave?

Hi all,

I would like to use a Raspberry Pi running a web server with a custom webiopi page as a kind of remote console to tweak certain aspects, such as other auto modes. Is there any way in WPIlibJ to accomplish this?
  #2   Spotlight this post!  
Unread 08-04-2015, 17:33
protoserge's Avatar
protoserge protoserge is offline
CAD, machining, circuits, fun!
AKA: Some call me... Tim?
FRC #0365 (MOE) & former 836 Mentor)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2002
Location: Wilmington, DE
Posts: 754
protoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond repute
Re: RoboRIO as I2C slave?

Is this intended to be used in competition?
  #3   Spotlight this post!  
Unread 08-04-2015, 17:49
DrWateryCat DrWateryCat is offline
Registered User
AKA: Kenny Raisbeck
FRC #2186 (Dogs of Steel)
Team Role: Programmer
 
Join Date: Apr 2015
Rookie Year: 2011
Location: Centreville, VA
Posts: 3
DrWateryCat is an unknown quantity at this point
Re: RoboRIO as I2C slave?

Quote:
Originally Posted by stinglikeabee View Post
Is this intended to be used in competition?
Not really, just more as a cool thing I can show my team and use in an offseason competition in septemberish.
  #4   Spotlight this post!  
Unread 08-04-2015, 18:29
virtuald's Avatar
virtuald virtuald is offline
RobotPy Guy
AKA: Dustin Spicuzza
FRC #1418 (), FRC #1973, FRC #4796, FRC #6367 ()
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,086
virtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant future
Re: RoboRIO as I2C slave?

It's probably easier to just wire your Pi into the router and use NetworkTables for communications. If you use pynetworktables2js, then you can talk directly to NetworkTables from javascript... and of course, if you're doing that, you don't even really need to run the web server on a Pi unless you want to.
__________________
Maintainer of RobotPy - Python for FRC
Creator of pyfrc (Robot Simulator + utilities for Python) and pynetworktables/pynetworktables2js (NetworkTables for Python & Javascript)

2017 Season: Teams #1973, #4796, #6369
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
  #5   Spotlight this post!  
Unread 08-04-2015, 23:33
jgalbraith jgalbraith is offline
Registered User
AKA: James Galbraith
FRC #0231 (High Voltage)
Team Role: Mentor
 
Join Date: Dec 2011
Rookie Year: 2012
Location: Houston
Posts: 4
jgalbraith is an unknown quantity at this point
You can use the parameter system in the SmartDashboard to write modified constants to the RoboRIO. This system needs to be used carefully as it can damage the flash memory.

Better in my opinion is to create a parameter file in /home/lvuser or a subdirectory thereof and read in the parameters on robot initialization. You could modify the file via ftp. Restart the robot code via the driver station to check out the changes.

Edit: another option is to modify the file on the RaspberryPi and then use it to FTP the file to the roboRIO.

Last edited by jgalbraith : 08-04-2015 at 23:53.
  #6   Spotlight this post!  
Unread 29-04-2015, 16:16
EmileH's Avatar
EmileH EmileH is offline
#dontbelarge
AKA: Emile Hamwey
FRC #1058 (The PVC Pirates) & SLFF (NE Way You Want It)
Team Role: Programmer
 
Join Date: Dec 2014
Rookie Year: 2011
Location: New England
Posts: 544
EmileH has a brilliant futureEmileH has a brilliant futureEmileH has a brilliant futureEmileH has a brilliant futureEmileH has a brilliant futureEmileH has a brilliant futureEmileH has a brilliant futureEmileH has a brilliant futureEmileH has a brilliant futureEmileH has a brilliant futureEmileH has a brilliant future
Re: RoboRIO as I2C slave?

The easiest way IMHO is to use:
  • SmartDashboard.getNumber() - Use to return doubles. You should use SmartDashboard.putNumber() first to give yourself a place to input the number.
  • SmartDashboard.getString() - Use to return text. Again use putString() first
  • SmartDashboard.getBoolean() - Use to return true or false. Use putBoolean() first.

There are different ways to display these things on SmartDashboard as well such as choosing View>Editable in the menubar then right clicking on different objects to change their appearance, etc.
__________________
2016-present: High School Student, FRC 1058 PVC Pirates

Closed Thread


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 21:19.

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