Go to Post Lighten it up a little to bring it in under the 120 pound weight limit, and I think you will have something there! - dlavery [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 21-02-2010, 20:57
Randy Forgaard's Avatar
Randy Forgaard Randy Forgaard is offline
Parent 1729, former mentor 3126
FRC #7129
Team Role: Parent
 
Join Date: Oct 2009
Rookie Year: 2010
Location: Hollis, NH, USA
Posts: 48
Randy Forgaard is a splendid one to beholdRandy Forgaard is a splendid one to beholdRandy Forgaard is a splendid one to beholdRandy Forgaard is a splendid one to beholdRandy Forgaard is a splendid one to beholdRandy Forgaard is a splendid one to beholdRandy Forgaard is a splendid one to behold
Is there an easy way to download all the source code for WPILib C++ v4.3 at once?

I'm wondering if there is a trick to using FIRST Forge that would allow us to download all the source code for WPILib C++ 4.3 in one fell swoop, rather than downloading each of the C++ source files one at a time from the WPILib C++ home at FIRST Forge. I'm not very familiar with FIRST Forge, so I'm wondering if there is a link or command that will download the latest versions of every source file all at once.

We were able to download all the source code for WPILib C++ v4.0 on the WPILib C++ FRC Updates web page. But we are hoping to grab the latest and greatest source code, corresponding to WPILib C++ v4.3, if possible.

If there's no trick, we'll download each file individually, no problem. I just wanted to check. Many thanks!
Reply With Quote
  #2   Spotlight this post!  
Unread 21-02-2010, 23:44
TheDominis TheDominis is offline
Registered User
FRC #2152
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Port Orange, Florida
Posts: 88
TheDominis has a spectacular aura aboutTheDominis has a spectacular aura about
Re: Is there an easy way to download all the source code for WPILib C++ v4.3 at once?

Yes. Download svn from http://subversion.apache.org/packages.html. Once you've installed svn checkout the source from http://firstforge.wpi.edu/svn/repos/wpilibcpp

If you downloaded tigris version of svn (command-line) you can use :

Code:
svn checkout --username <username> http://firstforge.wpi.edu/svn/repos/wpilibcpp
Reply With Quote
  #3   Spotlight this post!  
Unread 22-02-2010, 04:22
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: Is there an easy way to download all the source code for WPILib C++ v4.3 at once?

You can also grab the source snapshot of update 4.1. Updates 4.2 and 4.3 don't have different code, just the compiled binary is different (due to build tool problems).

-Joe
Reply With Quote
  #4   Spotlight this post!  
Unread 22-02-2010, 08:49
slavik262's Avatar
slavik262 slavik262 is offline
We do what we must because we can.
AKA: Matt Kline
FRC #0537 (Charger Robotics)
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Sussex, WI
Posts: 310
slavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to behold
Send a message via AIM to slavik262
Re: Is there an easy way to download all the source code for WPILib C++ v4.3 at once?

If you want to be tricky, you can always download the update executable and use 7-zip or an equivalent program to extract the files inside.
__________________
Reply With Quote
  #5   Spotlight this post!  
Unread 22-02-2010, 14:56
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: Is there an easy way to download all the source code for WPILib C++ v4.3 at once?

Quote:
Originally Posted by slavik262 View Post
If you want to be tricky, you can always download the update executable and use 7-zip or an equivalent program to extract the files inside.
But that will only get you the header files, not the C++ files.

-Joe
Reply With Quote
  #6   Spotlight this post!  
Unread 22-02-2010, 15:27
mikets's Avatar
mikets mikets is online now
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: Is there an easy way to download all the source code for WPILib C++ v4.3 at once?

BTW, do you have the link to the 4.1 source code? I only find 4.0 source code in the following link:
http://first.wpi.edu/FRC/frccupdates.html

In particular, I am interested in the source code for the ADXL345_I2C code because I want to find out if it does calibration at initialization just like the gyro does. We played with the accelerometer and noticed that the axes values are non-zero when the robot is perfectly still. It wouldn't be too much a problem until we decided to integrate the acceleration for velocity and again for distance. With a non-zero accerleration at rest, the distance will slowly drifted up (or down). It is not too hard to write calibration code at initialization to find the "zero point equivalent" but I just want to make sure the original code does not have this already.
Reply With Quote
  #7   Spotlight this post!  
Unread 22-02-2010, 15:52
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: Is there an easy way to download all the source code for WPILib C++ v4.3 at once?

http://firstforge.wpi.edu/sf/frs/do/...4_1_2 0100205

The included class does not calibrate the accelerometer because most teams using them as a tilt sensor would not want gravity calibrated out since it would cause strange behavior when it does tilt.

-Joe
Reply With Quote
  #8   Spotlight this post!  
Unread 22-02-2010, 16:44
mikets's Avatar
mikets mikets is online now
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: Is there an easy way to download all the source code for WPILib C++ v4.3 at once?

Tilt is from the Z-axis, right? So I could calibrate the X and Y axes and still get tilt. Another issue with the accelerometer is noise. We would like the calibration process to auto determine the deadband range during initialization. Is there any down side of doing that?
Thanks.
Reply With Quote
  #9   Spotlight this post!  
Unread 22-02-2010, 16:49
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: Is there an easy way to download all the source code for WPILib C++ v4.3 at once?

Any data you throw away (deadband) is lost accuracy when integrating. Typically you should prefer averaging over deadbanding. If your system has too much noise (which has been my experience) then integration simply won't work very well... especially double integration... especially for any length of time.

-Joe
Reply With Quote
  #10   Spotlight this post!  
Unread 22-02-2010, 16:49
mikets's Avatar
mikets mikets is online now
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: Is there an easy way to download all the source code for WPILib C++ v4.3 at once?

Actually, after thinking about it, I know what you mean now. When the robot is tilted, both the X and Y axes will have some G on it even if it is still.
Reply With Quote
  #11   Spotlight this post!  
Unread 22-02-2010, 16:50
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: Is there an easy way to download all the source code for WPILib C++ v4.3 at once?

Quote:
Originally Posted by mikets View Post
Actually, after thinking about it, I know what you mean now. When the robot is tilted, both the X and Y axes will have some G on it even if it is still.
Exactly.
Reply With Quote
  #12   Spotlight this post!  
Unread 22-02-2010, 17:04
mikets's Avatar
mikets mikets is online now
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: Is there an easy way to download all the source code for WPILib C++ v4.3 at once?

Hmm, shouldn't integration smooth out noise? Noise is supposed to be superimposing on the actual value (i.e. it will be above at one point and below at another). So both averaging and integration should cancel out noise in the long run, shouldn't it?
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
WPILib source code now posted BradAMiller C/C++ 5 21-02-2010 23:21
For all the Billfred fans out there ROBOmasta Chit-Chat 5 16-02-2009 11:58
Source code for the Easy C Pro library functions? bobpskier Programming 3 05-02-2007 21:39
For all the P-Ballers out there Andrew Y. Chit-Chat 13 23-11-2005 22:42
Happy Eid for all the Muslims out there!! Matt Attallah Chit-Chat 4 13-11-2004 16:47


All times are GMT -5. The time now is 02:49.

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