Go to Post Maybe if we get lucky [the GDC] will just say chute door. - IronicDeadBird [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-01-2009, 22:32
J. Stofflett's Avatar
J. Stofflett J. Stofflett is offline
Registered User
FRC #0123
 
Join Date: Oct 2001
Rookie Year: 1997
Location: Michigan
Posts: 43
J. Stofflett has a spectacular aura aboutJ. Stofflett has a spectacular aura aboutJ. Stofflett has a spectacular aura about
Team with limited programming resources

With the old IFI controls basic code and documentation was provided that mapped joysticks, buttons, and limit switches. This made it possible for teams with very limited programming resources get a basic robot up and running. Is there anything like that available for this years control system?
  #2   Spotlight this post!  
Unread 10-01-2009, 22:44
samir13k samir13k is offline
Registered User
AKA: Samir Shaikh
FRC #4329
Team Role: Mentor
 
Join Date: Mar 2008
Rookie Year: 2008
Location: St. Louis, MO
Posts: 281
samir13k has a brilliant futuresamir13k has a brilliant futuresamir13k has a brilliant futuresamir13k has a brilliant futuresamir13k has a brilliant futuresamir13k has a brilliant futuresamir13k has a brilliant futuresamir13k has a brilliant futuresamir13k has a brilliant futuresamir13k has a brilliant futuresamir13k has a brilliant future
Send a message via AIM to samir13k Send a message via MSN to samir13k
Re: Team with limited programming resources

this years system comes with a default code that is ready to go if you just want straightforward arcade drive. It is very easy to use or slightly modify with Labview. If you just put the software on your computer, and follow the instructions in the rules for the benchtop test, then you should be set to go. But for your own sake, use an autonomous mode, or you will be hammered upon in autonomous.
  #3   Spotlight this post!  
Unread 10-01-2009, 23:04
J. Stofflett's Avatar
J. Stofflett J. Stofflett is offline
Registered User
FRC #0123
 
Join Date: Oct 2001
Rookie Year: 1997
Location: Michigan
Posts: 43
J. Stofflett has a spectacular aura aboutJ. Stofflett has a spectacular aura aboutJ. Stofflett has a spectacular aura about
Re: Team with limited programming resources

We did the bench top test and can do the simple tank drive what we’re wondering if other functions are included in the default code for example is the trigger on joystick 1 mapped to a relay output by default. If so where do we find documentation?
  #4   Spotlight this post!  
Unread 10-01-2009, 23:19
programMORT11
 
Posts: n/a
Re: Team with limited programming resources

the FRC documentation in c:\WindRiver\docs\extensions\WPILib should have it
  #5   Spotlight this post!  
Unread 11-01-2009, 01:53
samir13k samir13k is offline
Registered User
AKA: Samir Shaikh
FRC #4329
Team Role: Mentor
 
Join Date: Mar 2008
Rookie Year: 2008
Location: St. Louis, MO
Posts: 281
samir13k has a brilliant futuresamir13k has a brilliant futuresamir13k has a brilliant futuresamir13k has a brilliant futuresamir13k has a brilliant futuresamir13k has a brilliant futuresamir13k has a brilliant futuresamir13k has a brilliant futuresamir13k has a brilliant futuresamir13k has a brilliant futuresamir13k has a brilliant future
Send a message via AIM to samir13k Send a message via MSN to samir13k
Re: Team with limited programming resources

that is for windriver though, honestly i have nothing against C code, but i would say labview should be much easier. Also, I believe when you update the code in the cRio to the default in LabView, it will change to Arcade drive. Anyways, in the Default code, just use the WPI Library at the bottom of the Functions Palette. It makes everything really simple. You can find relays under the actuators subgroup. In the WPI library, they have ready things like drive sytems and sensor subprograms. If you use this in conjunction with the manuals at The cRio manual page, you should be off to a good start. Much easier than any other years past.
  #6   Spotlight this post!  
Unread 11-01-2009, 11:36
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: Team with limited programming resources

Quote:
Originally Posted by samir13k View Post
that is for windriver though, honestly i have nothing against C code, but i would say labview should be much easier.
No matter which way you go, its much easier than previous years. WPILib makes a lot of the really simple things really easy to do. I personally find the HTML version of the Doxygen documentation far easier to use, I have an updated version of the Doxygen docs posted at: http://www.virtualroadside.com/WPILib/index.html (click on 'Classes', it gives you a list of every class in WPILib, so you can examine the objects and their methods in detail).
__________________
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-01-2009, 11:42
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: Team with limited programming resources

For a concrete example of why things is far easier this year, consider the idea of having a servo always 'pointing' in the same direction

Code:
double angle = 360 - fabs(fmod(gyro.GetAngle(), 360));
			
if (angle > 180)
	angle = angle - 180;


servo.SetAngle(angle);
Thats it. No annoying angle calculations, no integrating values for the gyro or figuring out the correct PWM signal to send to the servo -- just GetAngle() and SetAngle().Of course, its not perfect since we were only experimenting to see how well the servo/gyro played together... but it took all of a minute to write that code. Far more effort would have been expended in previous years.
__________________
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
  #8   Spotlight this post!  
Unread 11-01-2009, 11:53
popnbrown's Avatar
popnbrown popnbrown is offline
FIRST 5125 HOTH Lead Mentor
AKA: Sravan S
FRC #5125 (Hawks on the Horizon)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2007
Location: Illinois
Posts: 367
popnbrown has a reputation beyond reputepopnbrown has a reputation beyond reputepopnbrown has a reputation beyond reputepopnbrown has a reputation beyond reputepopnbrown has a reputation beyond reputepopnbrown has a reputation beyond reputepopnbrown has a reputation beyond reputepopnbrown has a reputation beyond reputepopnbrown has a reputation beyond reputepopnbrown has a reputation beyond reputepopnbrown has a reputation beyond repute
Re: Team with limited programming resources

Quote:
Originally Posted by J. Stofflett View Post
We did the bench top test and can do the simple tank drive what we’re wondering if other functions are included in the default code for example is the trigger on joystick 1 mapped to a relay output by default. If so where do we find documentation?
The Default Code does not include anything more than a simple 1 joystick arcade drive. Therefore any additional input you want from the driver station you will have to program yourself. LabVIEW is much easier, once you fully learn it (it was quite annoying in the beginning and I believe soon will be again) but in a nutshell WPILib provides much of the in depth functions and all you have to do is to put your input and your output (usually a subVI from WPILib) and run a wire from input to output. Keep in mind that's a nutshell, it's a tad bit more complicated than that.

LabVIEW vs. Windriver, I say LabVIEW only because, it's interesting, I've never used graphical programming and FIRST is about making robots but also about learning to make robots and I would like to learn another type of programming method, LabVIEW is also used very commonly.

The Lead Programmer on my team and I have been resisting the temptation to switch to WindRiver. For some reason we like doing things the more complicated way (until you get sick of it). However, WPI has made it much easier to program this year as well through the use of numerous object classes in C++.

It's a personal choice but try LabVIEW if too complicated then WindRiver.


There is a lot of documentation on FIRST's->Already Involved:FRC -> Documents & Updates:2009 Control Sytem

Scroll down and there is a bunch of documents for LabVIEW and WindRiver

Good Luck!
Sravan
__________________
I am an employee of FIRST. However, the postings on this site are of my own perspective as a FIRST mentor and volunteer and do not necessarily reflect the views of FIRST.

FIRST Team 5125 Hawks on the Horizon Lead Mentor
FRC Team 4096 Ctrl-Z Former Mentor
FTC Team 5203 #19@! Former Mentor
FRC Team 1403 Cougar Robotics Alumni
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
NEED GENERAL HELP on how to find programming and animation resources delphi demon General Forum 1 02-04-2007 15:58
Looking for resources to learn programming meglovesbots Programming 8 03-12-2006 14:35
programming motors with programming kit BorisTheBlade FIRST Tech Challenge 4 01-11-2005 19:03
Space is limited act now to comet to TEAM 69's mini-meet archiver 2001 2 24-06-2002 00:21
Space is limited act NOW TEAM 69 Scrimmage archiver 2001 2 24-06-2002 00:21


All times are GMT -5. The time now is 19:25.

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