Go to Post I love it when awards go to the right people. - David Kelso [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 30-11-2010, 16:13
Bot190's Avatar
Bot190 Bot190 is offline
Registered User
FRC #0166 (ChopShop)
Team Role: Programmer
 
Join Date: Sep 2009
Rookie Year: 2009
Location: Merrimack NH
Posts: 105
Bot190 will become famous soon enough
Re: Python virtual speed controllers!

I'm pretty sure this code was NOT intended to be run on a robot, and is meant to be a simulation run on a computer.
__________________

  #2   Spotlight this post!  
Unread 30-11-2010, 16:31
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,057
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: Python virtual speed controllers!

Quote:
Originally Posted by Bot190 View Post
I'm pretty sure this code was NOT intended to be run on a robot, and is meant to be a simulation run on a computer.
Referring to the top of the file:

Code:
try:
    import wpilib as wpi
except:
    import testing as wpi
That import statement seems to refer to the wpilib that is available in the python interpreter ported to the cRio. So, it could theoretically be run on the robot, if the bugs were fixed. Might not be useful, but it could work.

Also refer to inputs.py, it has the same thing that switches the input device from a joystick to predetermined values.
__________________
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
  #3   Spotlight this post!  
Unread 30-11-2010, 16:56
Bot190's Avatar
Bot190 Bot190 is offline
Registered User
FRC #0166 (ChopShop)
Team Role: Programmer
 
Join Date: Sep 2009
Rookie Year: 2009
Location: Merrimack NH
Posts: 105
Bot190 will become famous soon enough
Re: Python virtual speed controllers!

Ok, now I've confused myself, Looking at what you said, then looking at the code, and what the OP said, I have no clue what its meant to do, and how its meant to be used. Can the OP clarify this?
__________________

  #4   Spotlight this post!  
Unread 30-11-2010, 21:47
Robototes2412's Avatar
Robototes2412 Robototes2412 is offline
1 * 4 != 14
FRC #2412 (Robototes)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2007
Location: Bellevue
Posts: 312
Robototes2412 is on a distinguished road
Re: Python virtual speed controllers!

sorry,

I didn't realize it was py3 on the robot, i will fix the prints.

What you can do with this is using the cmd framework I have set up, you can essentially have your laptop run any code the robot would (when this is done, of course) and get a result you can use a whiteboard to draw out.

This code will also (hopefully) run on robotPy.

Can I please have feedback on things such as my coding style? It would help a lot.

Sorry for the confusion.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Speed Controllers Liu_yiang General Forum 11 07-02-2009 20:12
Speed controllers.... Denman Technical Discussion 14 07-10-2004 15:19
speed controllers archiver 2000 5 24-06-2002 00:19
Speed Controllers archiver 2000 1 23-06-2002 23:01
Speed Controllers... Tom Schindler Technical Discussion 4 13-12-2001 17:26


All times are GMT -5. The time now is 00:06.

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