Go to Post We have a little saying on our team. "Don't worry, we'll fix it in software." - klrswift [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
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 20-03-2009, 10:07
3DWolf's Avatar
3DWolf 3DWolf is offline
Boots - Head Programmer / 3D
AKA: Jake
FRC #1502 (Technical Difficulties)
Team Role: Programmer
 
Join Date: Dec 2006
Rookie Year: 2005
Location: Chelsea Michigan
Posts: 97
3DWolf is on a distinguished road
Send a message via AIM to 3DWolf Send a message via MSN to 3DWolf
Return DS Rev #

Is there a variable or something with the DriversStation class to return the Rev number?
I'm trying to get a custom display working just for fun, but I can't find anything in the WPI Libraries for this.
__________________
You can call it the programming teams fault, but we'll just force your arguments nil.

There are 10 kinds of people in the world -> Those who understand binary and those who don't.

WYSIWYG - In FIRST: Greatness
Reply With Quote
  #2   Spotlight this post!  
Unread 20-03-2009, 10:13
Shadow503's Avatar
Shadow503 Shadow503 is offline
printf("\r\n Moo!");
no team
Team Role: Human Player
 
Join Date: Mar 2007
Rookie Year: 1991
Location: na
Posts: 92
Shadow503 will become famous soon enoughShadow503 will become famous soon enough
Re: Return DS Rev #

I'm not sure how to go about doing this, but I don't think it should be necessary. The DS rev number can already be viewed in the default view and should only be needed for inspection.
Reply With Quote
  #3   Spotlight this post!  
Unread 20-03-2009, 10:21
3DWolf's Avatar
3DWolf 3DWolf is offline
Boots - Head Programmer / 3D
AKA: Jake
FRC #1502 (Technical Difficulties)
Team Role: Programmer
 
Join Date: Dec 2006
Rookie Year: 2005
Location: Chelsea Michigan
Posts: 97
3DWolf is on a distinguished road
Send a message via AIM to 3DWolf Send a message via MSN to 3DWolf
Re: Return DS Rev #

Oh no, it's in no way necessary - I just felt like doing it because I'm sitting at Lansing and our bot is working fine, just wanted to have a bit of fun with the DS - but I figured I might as well make it function normally or whatever while having fun too.
There's a custom class and everything that you have to use to get it to work, I have that, I just can't figure out how to return the rev num
__________________
You can call it the programming teams fault, but we'll just force your arguments nil.

There are 10 kinds of people in the world -> Those who understand binary and those who don't.

WYSIWYG - In FIRST: Greatness
Reply With Quote
  #4   Spotlight this post!  
Unread 20-03-2009, 14:42
Shadow503's Avatar
Shadow503 Shadow503 is offline
printf("\r\n Moo!");
no team
Team Role: Human Player
 
Join Date: Mar 2007
Rookie Year: 1991
Location: na
Posts: 92
Shadow503 will become famous soon enoughShadow503 will become famous soon enough
Re: Return DS Rev #

Boredom is quite fun: I've been working on a pong mode for our DS using the joysticks. It's not finished yet, but I'll post code once it's done.
Reply With Quote
  #5   Spotlight this post!  
Unread 20-03-2009, 14:47
3DWolf's Avatar
3DWolf 3DWolf is offline
Boots - Head Programmer / 3D
AKA: Jake
FRC #1502 (Technical Difficulties)
Team Role: Programmer
 
Join Date: Dec 2006
Rookie Year: 2005
Location: Chelsea Michigan
Posts: 97
3DWolf is on a distinguished road
Send a message via AIM to 3DWolf Send a message via MSN to 3DWolf
Re: Return DS Rev #

Quote:
Originally Posted by Shadow503 View Post
Boredom is quite fun: I've been working on a pong mode for our DS using the joysticks. It's not finished yet, but I'll post code once it's done.
Bahahaha that sounds awesome, I cant wait to play it.
__________________
You can call it the programming teams fault, but we'll just force your arguments nil.

There are 10 kinds of people in the world -> Those who understand binary and those who don't.

WYSIWYG - In FIRST: Greatness
Reply With Quote
  #6   Spotlight this post!  
Unread 22-03-2009, 21:01
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: Return DS Rev #

I was bored (that is my line that gets the other programmers knowing i wrote something interesting and complex) at the boilermaker, and so i wrote a simple pong, not very long, I have not had a chance to test it, but the other programmers thought that it works. it loops through evry .05 seconds and moves according to the joysticsk, and the ball bounces around negating the direction when it hits bounds.
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
Reply With Quote
  #7   Spotlight this post!  
Unread 23-03-2009, 19:40
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,050
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: Return DS Rev #

Quote:
Originally Posted by byteit101 View Post
I was bored (that is my line that gets the other programmers knowing i wrote something interesting and complex) at the boilermaker, and so i wrote a simple pong, not very long, I have not had a chance to test it, but the other programmers thought that it works. it loops through evry .05 seconds and moves according to the joysticsk, and the ball bounces around negating the direction when it hits bounds.
You should test it with my test harness -- should work, the LCD screen is quite functional for it.
__________________
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
Reply With Quote
  #8   Spotlight this post!  
Unread 23-03-2009, 21:31
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: Return DS Rev #

Quote:
Originally Posted by virtuald View Post
You should test it with my test harness -- should work, the LCD screen is quite functional for it.
hmm, plug in 2 joystics, download the test harness, play pong. hmmm... sounds like fun (and a way to not be bored)
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Renumbering of rules in rev F and Rev G of section 8 Joe Ross Rules/Strategy 3 02-02-2009 21:46
pic: Evolution of a gearbox rev 4 roboticWanderor Extra Discussion 9 27-05-2008 09:19
relay fwd & rev Windward Programming 1 28-01-2006 14:03
Rev. 2 Blueprint corrections archiver 2001 3 23-06-2002 22:36


All times are GMT -5. The time now is 13:35.

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