Go to Post You can either suck up a lot of oxygen, or you can contribute to our communal knowledge. The choice is yours. - dlavery [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 09-01-2011, 20:10
mwtidd's Avatar
mwtidd mwtidd is offline
Registered User
AKA: mike
FRC #0319 (Big Bad Bob)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 2003
Location: Boston, MA
Posts: 714
mwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond repute
removed classes from wpilib

I tried loading the code base from last year and noticed that there are quite a bit classes missing now. This includes things like the RobotDrive class and the DigitalInput class. I just wanted to give programmers a heads up that once you update, last years code may not work.


*and as always, remember if you plan you use last years code you MUST open source it
__________________
"Never let your schooling interfere with your education" -Mark Twain
  #2   Spotlight this post!  
Unread 09-01-2011, 20:17
Garten Haeska's Avatar
Garten Haeska Garten Haeska is offline
Registered User
AKA: Garty
FRC #2861 (Infinity's End)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2009
Location: Lake City, MN
Posts: 219
Garten Haeska has a spectacular aura aboutGarten Haeska has a spectacular aura about
Re: removed classes from wpilib

Quote:
Originally Posted by lineskier View Post
I tried loading the code base from last year and noticed that there are quite a bit classes missing now. This includes things like the RobotDrive class and the DigitalInput class. I just wanted to give programmers a heads up that once you update, last years code may not work.


*and as always, remember if you plan you use last years code you MUST open source it
yes i have noticed this too, it is quite strange, there will be no arcade drive this year im assuming saying thats whats missing from our code?
  #3   Spotlight this post!  
Unread 09-01-2011, 20:18
Slix Slix is offline
Registered User
AKA: Peter Kowalczyk
FRC #2115 (NightMares)
Team Role: Programmer
 
Join Date: Mar 2010
Rookie Year: 2010
Location: Mundelein, IL
Posts: 31
Slix is an unknown quantity at this point
Re: removed classes from wpilib

Quote:
Originally Posted by lineskier View Post
I tried loading the code base from last year and noticed that there are quite a bit classes missing now. This includes things like the RobotDrive class and the DigitalInput class. I just wanted to give programmers a heads up that once you update, last years code may not work.


*and as always, remember if you plan you use last years code you MUST open source it
What? That seems odd. I was looking through the C++ documentation that detailed all of the classes, and RobotDrive was included. And I'm sure it's not an outdated version because it includes the new Watchdog replacement.

http://firstforge.wpi.edu/sf/go/doc1198?nav=1
  #4   Spotlight this post!  
Unread 09-01-2011, 21:19
topgun's Avatar
topgun topgun is offline
Registered User
FRC #2846 (FireBears)
Team Role: Mentor
 
Join Date: Oct 2008
Rookie Year: 2008
Location: Minnesota
Posts: 229
topgun has a brilliant futuretopgun has a brilliant futuretopgun has a brilliant futuretopgun has a brilliant futuretopgun has a brilliant futuretopgun has a brilliant futuretopgun has a brilliant futuretopgun has a brilliant futuretopgun has a brilliant futuretopgun has a brilliant futuretopgun has a brilliant future
Re: removed classes from wpilib

Quote:
Originally Posted by lineskier View Post
*and as always, remember if you plan you use last years code you MUST open source it
I think that MUST should read "SHOULD HAVE ALREADY open sourceD it". If you haven't already open sourced it at this point, I think you are too late. The competition started yesterday.

Maybe Chief Delphi should have an open source announcements forum just for this purpose.
__________________
-T

  #5   Spotlight this post!  
Unread 10-01-2011, 01:42
imac256 imac256 is offline
Registered User
AKA: Ian McInerney
FRC #2022 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jun 2009
Rookie Year: 2009
Location: Aurora, IL
Posts: 30
imac256 is a glorious beacon of lightimac256 is a glorious beacon of lightimac256 is a glorious beacon of lightimac256 is a glorious beacon of lightimac256 is a glorious beacon of light
Re: removed classes from wpilib

Where in the rules does it talk about being allowed to use open source code? I looked through the rules and couldn't find any reference to it. I remember that last year they had a rule saying any open source code was considered COTS, but I can't find that for this year.
__________________
- Ian McInerney
Alumni & Mentor, Team 2022 Titan Robotics
Junior, Iowa State University majoring in Electrical Engineering
  #6   Spotlight this post!  
Unread 10-01-2011, 01:49
mwtidd's Avatar
mwtidd mwtidd is offline
Registered User
AKA: mike
FRC #0319 (Big Bad Bob)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 2003
Location: Boston, MA
Posts: 714
mwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond repute
Re: removed classes from wpilib

a COTS item is something you can get from a distributor and can be made available to and supplied to every team if need be
software free or not falls under this definition
__________________
"Never let your schooling interfere with your education" -Mark Twain
  #7   Spotlight this post!  
Unread 10-01-2011, 02:09
AllenGregoryIV's Avatar
AllenGregoryIV AllenGregoryIV is offline
Engineering Coach
AKA: Allen "JAG" Gregory
FRC #3847 (Spectrum)
Team Role: Coach
 
Join Date: Jul 2008
Rookie Year: 2003
Location: Texas
Posts: 2,557
AllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond repute
Send a message via AIM to AllenGregoryIV
Re: removed classes from wpilib

In the first section of the manual there is a glossary that defines COTS parts. Specifically in section 1.6 COTS the note says

Quote:
For the purposes of the FRC, generally available software modules obtained from open sources (e.g. professional publications, commonly used FRC community accessible web resources, industry source code repositories, etc.) that are not specifically affiliated with individual FRC teams shall be considered COTS items.
  #8   Spotlight this post!  
Unread 10-01-2011, 03:18
Slix Slix is offline
Registered User
AKA: Peter Kowalczyk
FRC #2115 (NightMares)
Team Role: Programmer
 
Join Date: Mar 2010
Rookie Year: 2010
Location: Mundelein, IL
Posts: 31
Slix is an unknown quantity at this point
Re: removed classes from wpilib

I looked at this years WPILib manual that has doxygen documentation of all the classes. I saw RobotDrive included.
  #9   Spotlight this post!  
Unread 10-01-2011, 03:56
mwtidd's Avatar
mwtidd mwtidd is offline
Registered User
AKA: mike
FRC #0319 (Big Bad Bob)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 2003
Location: Boston, MA
Posts: 714
mwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond repute
Re: removed classes from wpilib

Quote:
Originally Posted by Slix View Post
I looked at this years WPILib manual that has doxygen documentation of all the classes. I saw RobotDrive included.
I think it's all set now. They were having issues before with having the most recent release ready. Seems to be fixed.
__________________
"Never let your schooling interfere with your education" -Mark Twain
  #10   Spotlight this post!  
Unread 11-01-2011, 02:40
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: removed classes from wpilib

Quote:
Originally Posted by Garten Haeska View Post
yes i have noticed this too, it is quite strange, there will be no arcade drive this year im assuming saying thats whats missing from our code?
You have some other problem. None of these classes were removed.

-Joe
  #11   Spotlight this post!  
Unread 11-01-2011, 02:47
davidthefat davidthefat is offline
Alumni
AKA: David Yoon
FRC #0589 (Falkons)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: California
Posts: 792
davidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud of
Re: removed classes from wpilib

Use the following if you want arcade drive. Tank drive is easier.

Linear Arcade drive:


int m1 = 0; //Temp Variables
int m2 = 0; //Temp Variable
int x = 0; //Joystick X
int y = 0; //Joystick Y
Joystick JoyHoy = new Joystick(1);
PWM motor1 = new PWM(1);
PWM motor2 = new PWM(2);

/*
I usually declare and initialize separately like I do for C++, but for simplicity sake I didn't.
*/

while(teleop) //arbitrary while loop, its the teleop
{
Y = JoyHoy.getY();
X = JoyHoy.getX();
m1 = 127 * y + 127;
m2 = 127 * y + 127;
motor1.setRaw((int)(m1 + m1 * x));
motor2.setRaw((int)(m2 - m2 * x));
}

edit:
also regulate the PWM, as is, the code will generate invalid PWMs
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.

Last edited by davidthefat : 11-01-2011 at 17:33.
  #12   Spotlight this post!  
Unread 11-01-2011, 04:43
thepcphysician thepcphysician is offline
Registered User
FRC #1678
 
Join Date: Jan 2010
Location: Davis, CA
Posts: 12
thepcphysician is an unknown quantity at this point
Re: removed classes from wpilib

On the topic of WPILib changes, they changed "SetLeftRightMotorSpeeds" to "SetLeftRightMotorOutputs" without updating the documentation. Took me an hour of compiler errors before I finally looked in RobotDrive and figured that out.
  #13   Spotlight this post!  
Unread 11-01-2011, 12:25
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: removed classes from wpilib

Quote:
Originally Posted by thepcphysician View Post
On the topic of WPILib changes, they changed "SetLeftRightMotorSpeeds" to "SetLeftRightMotorOutputs" without updating the documentation. Took me an hour of compiler errors before I finally looked in RobotDrive and figured that out.
Which document is not updated? We'll get that fixed.
  #14   Spotlight this post!  
Unread 12-01-2011, 02:31
thepcphysician thepcphysician is offline
Registered User
FRC #1678
 
Join Date: Jan 2010
Location: Davis, CA
Posts: 12
thepcphysician is an unknown quantity at this point
Re: removed classes from wpilib

Page 35, WPI Robotics Library User's Guide, January 5th, 2011. Are you with WPI?
  #15   Spotlight this post!  
Unread 12-01-2011, 02:48
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: removed classes from wpilib

Quote:
Originally Posted by thepcphysician View Post
Page 35, WPI Robotics Library User's Guide, January 5th, 2011. Are you with WPI?
No, but I'm one of the developers of WPILib for C++.
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 10:18.

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