Go to Post Our team calls me "John Regular Neun," because John V-Neun is so spectacular! - John Neun [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 10-03-2009, 22:39
cactuarman's Avatar
cactuarman cactuarman is offline
Registered User
FRC #0996
Team Role: Programmer
 
Join Date: Mar 2009
Rookie Year: 2008
Location: Arizona
Posts: 11
cactuarman is just really nicecactuarman is just really nicecactuarman is just really nicecactuarman is just really nicecactuarman is just really nice
Programming without a Robot

Our mechanical team got behind schedule and was finished just before the deadline. So we have a problem. Our Robot isn't programmed and its already been shipped. Does anyone have any ideas on how I can program it without it here? Or are we totally screwed?
  #2   Spotlight this post!  
Unread 10-03-2009, 23:35
Alex698's Avatar
Alex698 Alex698 is offline
Sparky
FRC #2449 (Out of Orbit Robotics)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Arizona
Posts: 114
Alex698 is a jewel in the roughAlex698 is a jewel in the roughAlex698 is a jewel in the rough
Send a message via AIM to Alex698
Re: Programming without a Robot

Did you keep behind your cRIO and power distribution board? If you did you can work and test sections of code by rebuilding or simulating parts of your robot in the lab.
__________________
Eat, Sleep, Build Robots
  #3   Spotlight this post!  
Unread 10-03-2009, 23:41
Eugene Fang's Avatar
Eugene Fang Eugene Fang is offline
The Blue Alliance
no team
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Bay Area, CA -> Pittsburgh, PA
Posts: 772
Eugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond repute
Re: Programming without a Robot

If you have already shipped the cRIO, you can run the code on your computer (to an extent). See the following link

http://www.lvmastery.com/TipJar2009-02-08_3

How complicated is the mechanism you are trying to control? Is it just direct joystick to motor controls, or do you plan on automating certain functions of your robot?

Also, it's pretty easy to change motor direction once you get to competition, as it's just a True/False boolean for the Open Motor.vi

Feel free to ask me for any help.
__________________
Eugene Fang
2010 Silicon Valley Regional Dean's List Finalist

Various FLL Teams - Student (2000-2006), Mentor (2007-2010)
FRC Team 604 - Student (2007-2010), Mentor/Remote Advisor (2011-2015)
FRC Team 1323 - Mentor/Remote Advisor (2011-2014)

The Blue Alliance | TBA GameDay | TBA Android App
  #4   Spotlight this post!  
Unread 10-03-2009, 23:39
kevin.li.rit's Avatar
kevin.li.rit kevin.li.rit is offline
Imaginary Friend
AKA: Kevin Li
FRC #0596 (SciClones)
Team Role: Student
 
Join Date: Jan 2003
Rookie Year: 2001
Location: Hopkinton, Massachusetts
Posts: 936
kevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond repute
Send a message via Yahoo to kevin.li.rit
Re: Programming without a Robot

I would look for an additional DS, cRIO and the modules that you are using on the robot. Another team might have an extra. You can hook up motors to speed controllers and see which direction they are moving ( or watch the LEDs). You can also hook up whatever sensors you are using to make sure they are providing proper feedback.

The default code should be enough to at least get your robot moving.
__________________
Kevin Li

596 - Sciclones
1405 - Finney Falcons
2262 - Holliston Panthers
  #5   Spotlight this post!  
Unread 10-03-2009, 23:48
prometheoid prometheoid is offline
Registered User
AKA: Ray
FRC #2538 (Plaid Pillagers)
Team Role: Mechanical
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Morris, MN
Posts: 8
prometheoid will become famous soon enough
Send a message via AIM to prometheoid
Re: Programming without a Robot

Make some assumptions and program it as best you can.
If you need any help, our programmer and I can guide you through the process, but the most important thing is to make the code very accessible. As long as you know what assumptions you made, and then can change those assumptions quickly based on experimental measurements, the code will be good enough.

If you have odd sensors and such, make sure you read the documentation so you know where to attach them and how to have your program interface with them.
  #6   Spotlight this post!  
Unread 11-03-2009, 15:17
virtuald's Avatar
virtuald virtuald is online now
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,084
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: Programming without a Robot

I've created a GUI "Test Harness" for WPILib/C++ that allows you to run bot code on your computer using a normal compiler. Many of the basic items (motors, encoders, joysticks, I/O) are either fully or partially implemented.

I'm hoping to finish up the rest of it tonight or later this week, and will be releasing it shortly after.
__________________
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
  #7   Spotlight this post!  
Unread 11-03-2009, 15:25
Killraine Killraine is offline
Team Robot
AKA: Josh Lucas
FRC #2016 (Mighty Monkey Wrenches)
Team Role: Mentor
 
Join Date: Jul 2006
Rookie Year: 2005
Location: New Jersey
Posts: 76
Killraine will become famous soon enoughKillraine will become famous soon enough
Re: Programming without a Robot

Remember that comments are your friend! You will have Thursday at the competition to debug, but remember your team will want to do practice rounds, etc. and any mechanical changes that need to be done (there will be mechanical problems ). If you make a list of everything you need to test debug and correlate that to comments in your code, it should make your Thursday more efficient and hopefully get you on the field for some practice rounds for your drivers.
__________________
  #8   Spotlight this post!  
Unread 11-03-2009, 15:54
Doug Leppard's Avatar
Doug Leppard Doug Leppard is offline
Registered User
FRC #1902 (Exploding Bacon)
Team Role: Engineer
 
Join Date: Apr 2003
Rookie Year: 2003
Location: Orlando
Posts: 435
Doug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond repute
Send a message via AIM to Doug Leppard
Re: Programming without a Robot

One of the biggest issues in the 6 week schedule. For most teams the hardware build will take right up to ship date. Most hardware teams do not understand software takes lots of time, but since they can not see it like hardware leaving time for it just doesn't happen.

Our teams tried to deliver on time but it didn't happen, so we kept back Crio and ordered extra parts and continued to program.
__________________
Doug Leppard
  #9   Spotlight this post!  
Unread 11-03-2009, 16:01
Tom Bottiglieri Tom Bottiglieri is offline
Registered User
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: San Francisco, CA
Posts: 3,187
Tom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond repute
Re: Programming without a Robot

I think your answer lies in the complexity of your robot. If you are just mapping motors to joystick values and switches (open loop), you should be able to design the code and implement it fairly easily at the regional.

If you are doing any kind of semi autonomous operation or closed loop control, you should probably look into setting up some kind of test bench with another cRIO, or figuring out a way to make some community tools useful. (Like the Kwarqs' virtual robot or 111's virtual driver station)

Also, if you are new(ish) to programming, it may be helpful to do some test coding on a previous year's robot. While the control system isnt the same, many of the coding techniques you will use will be the same. For example, I have been using the same state machine code for arms/shooters/turrets/launchers for the past 3 years. (Don't worry, we rewrote it every year. Its just basically the same exact thing.)

Last edited by Tom Bottiglieri : 11-03-2009 at 16:04.
  #10   Spotlight this post!  
Unread 13-03-2009, 18:50
cactuarman's Avatar
cactuarman cactuarman is offline
Registered User
FRC #0996
Team Role: Programmer
 
Join Date: Mar 2009
Rookie Year: 2008
Location: Arizona
Posts: 11
cactuarman is just really nicecactuarman is just really nicecactuarman is just really nicecactuarman is just really nicecactuarman is just really nice
Re: Programming without a Robot we

We still have the cRIO so I think we should pretty good. I guess my main problem deals with the complexity of our drive system.

Thanks for the suggestions and advice. I'll be sure to check back if I need any help.
  #11   Spotlight this post!  
Unread 14-03-2009, 06:37
virtuald's Avatar
virtuald virtuald is online now
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,084
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: Programming without a Robot

FYI, I have finally released the test harness.

http://www.virtualroadside.com/blog/...ness-released/
__________________
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
  #12   Spotlight this post!  
Unread 14-03-2009, 12:31
Albo Albo is offline
Registered User
AKA: Al Vigland
FRC #2408 (Shrapnel Sergeants)
Team Role: Mentor
 
Join Date: Sep 2008
Rookie Year: 2007
Location: St. Louis
Posts: 7
Albo is an unknown quantity at this point
Re: Programming without a Robot

Even though our team is not using the C++ environment and can't use this test harness, I applaud you for putting one together. I had been thinking that there should be a way to emulate the hardware such that you can see what the program is trying to do. We use LabView and using the probes during run time on the robot has been great ... so I am also wondering if there could be a generic CRIO emulator that, when run, would listen on the appropriate IP address and could be connected to either LabView or C++ dev environments.

How hard do you think that would be?
  #13   Spotlight this post!  
Unread 14-03-2009, 13:43
virtuald's Avatar
virtuald virtuald is online now
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,084
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: Programming without a Robot

Quote:
so I am also wondering if there could be a generic CRIO emulator that, when run, would listen on the appropriate IP address and could be connected to either LabView or C++ dev environments.

How hard do you think that would be?
That sounds like far too much work.

First off, you would need a PowerPC emulator (which, there are some that exist, but I'm not sure how peripheral-agnostic they are). Second, you would have to figure out how the peripherals (ie, the FPGA) are mapped onto the system, and as far as I can tell most of that is totally undocumented (at least, undocumented to us). Then, you would have to implement the peripherals and such, and flash the emulated enivironment -- at which point its not immediately clear if the license that we have for vxWorks and such allows you to run it on anything except for the control systems given to us by FIRST.

You're probably better off checking out the link that Pikat posted -- that seems to be a simple solution for the problem.
__________________
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
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
pic: PD-1345's 2008 robot without bumpers Arefin Bari Robot Showcase 2 23-02-2008 23:44
Guitar Hero Driven Robot- Without USB Dongle Tach'ko Electrical 7 02-02-2008 00:05
pic: 296 Robot 2007 without ramps Rick-906 Robot Showcase 7 11-11-2007 00:06
Running the robot without a tether Hiromi Technical Discussion 3 05-10-2007 08:37
IR without EDU '04 Robot Bill Hnath Control System 3 09-02-2004 21:18


All times are GMT -5. The time now is 22:41.

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