Go to Post A stack is a stack is a stack. (How Profound!) - Paul Copioli [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 27-05-2014, 19:36
taichichuan's Avatar
taichichuan taichichuan is offline
Software Mentor
AKA: Mike Anderson
FRC #0116 (Epsilon Delta)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Herndon, VA
Posts: 333
taichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud of
Send a message via AIM to taichichuan
Sources for new WPILib available yet?

Hi Gang,

Is there a copy of the 2015 WPILib available for download yet?

If not, does anyone know when the library sources will be available?

TIA,

Mike
  #2   Spotlight this post!  
Unread 27-05-2014, 19:47
FrankJ's Avatar
FrankJ FrankJ is offline
Robot Mentor
FRC #2974 (WALT)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2009
Location: Marietta GA
Posts: 1,931
FrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond repute
Re: Sources for new WPILib available yet?

I don't have official knowledge so take this for what it is worth. Normally it would be at kickoff. Since they are selling roborios Nov/Dec they might release it earlier. I would expect it until after Beta is done though. Part of the Beta non disclosure (at least in the past) is not to release the Beta versions, one reason given is so not to have multiple versions out there.
  #3   Spotlight this post!  
Unread 27-05-2014, 19:48
Ben Wolsieffer Ben Wolsieffer is offline
Dartmouth 2020
AKA: lopsided98
FRC #2084 (Robots by the C)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Manchester, MA (Hanover, NH)
Posts: 520
Ben Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud of
Re: Sources for new WPILib available yet?

The project is available here: https://usfirst.collab.net/sf/projects/wpilib/

If you have an account (ie. from signing up for the Gazebo beta) you can pull it, but otherwise I don't know how to get it.
__________________



2016 North Shore District - Semifinalists and Excellence in Engineering Award
2015 Northeastern University District - Semifinalists and Creativity Award
2014 Granite State District - Semifinalists and Innovation in Control Award
2012 Boston Regional - Finalists
  #4   Spotlight this post!  
Unread 27-05-2014, 22:57
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,065
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: Sources for new WPILib available yet?

It is actually available on a publicly accessible website if you happen to look hard enough.

Disclaimer: I am not on a alpha or beta testing team, nor have I received any special non-public information from anyone.
__________________
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
  #5   Spotlight this post!  
Unread 27-05-2014, 23:01
Christopher149 Christopher149 is offline
Registered User
FRC #0857 (Superior Roboworks) FTC 10723 (SnowBots)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2007
Location: Houghton, MI
Posts: 1,103
Christopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond repute
Re: Sources for new WPILib available yet?

My immediate guess is that changes to WPILib might well not be done or finalized, so the 2015 version might not truly exist yet.
__________________
2015-present: FTC 10723 mentor
2012-present: 857 mentor
2008-2011: 857 student

2015: Industrial Design, Excellence in Engineering, District Finalist, Archimedes Division (#6 alliance captain)
2014: Judges Award, District Engineering Inspiration, District Finalist, Galileo Division

  #6   Spotlight this post!  
Unread 27-05-2014, 23:10
Jon Stratis's Avatar
Jon Stratis Jon Stratis is offline
Electrical/Programming Mentor
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,784
Jon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond repute
Re: Sources for new WPILib available yet?

As the updated wpilib is going to be designed for the roboRio, I'm not sure how much good it will do you at this point. I haven't heard yet if it will be backwards compatible with the cRio, or if they'll maintain separate libraries...

At any rate, the new Wpilib, at least at this point, isn't really any different from the old. The entire Alpha Test phase (which isn't done yet) has been all about getting the libraries updated to work with the roboRio, not adding new features or changing things dramatically.
__________________
2007 - Present: Mentor, 2177 The Robettes
LRI: North Star 2012-2016; Lake Superior 2013-2014; MN State Tournament 2013-2014, 2016; Galileo 2016; Iowa 2017
2015: North Star Regional Volunteer of the Year
2016: Lake Superior WFFA
  #7   Spotlight this post!  
Unread 28-05-2014, 01:32
taichichuan's Avatar
taichichuan taichichuan is offline
Software Mentor
AKA: Mike Anderson
FRC #0116 (Epsilon Delta)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Herndon, VA
Posts: 333
taichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud of
Send a message via AIM to taichichuan
Re: Sources for new WPILib available yet?

Actually, I'm not interested in backwards compatibility. As a guy who does embedded Linux for a living, I'm more interested in seeing the implementation to see what needs to be changed to make it work correctly in a multi-core environment.

You can't just take the uni-processor version and hack it to run on a multi-core. There are race conditions galore intoduced in mutli-core systems because of the 1-1 threading model that Linux uses. And, since the NI-Linux is rumored to have the PREEMPT_RT patch in place, there are a number of tweaks that need to be done in order for the data flow to work smoothly. Not to mention simply knowing what kernel release is being used will tell me a lot about what to expect in the driver model.

Additionally, there's the issue of moving from a big endian PPC to a little endian ARM (let alone VxWorks to Linux). I developed a lot of training materials for Wind River to help customers move from VxWorks to Linux. So, I know most of the pitfalls. I just don't want to spend the first two seasons with the roboRio trying to shake out bugs when I know how to fix most of the ones that will be introduced in the move to Linux.

Thanks,

Mike

Last edited by taichichuan : 28-05-2014 at 01:35.
  #8   Spotlight this post!  
Unread 28-05-2014, 10:18
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,572
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Sources for new WPILib available yet?

There's 2 days left to apply to beta test. http://www.usfirst.org/roboticsprogr...tem-KOP-Survey
  #9   Spotlight this post!  
Unread 28-05-2014, 12:13
FrankJ's Avatar
FrankJ FrankJ is offline
Robot Mentor
FRC #2974 (WALT)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2009
Location: Marietta GA
Posts: 1,931
FrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond repute
Re: Sources for new WPILib available yet?

+1 applying for Beta. That is where you can provide the best feedback.

C++ is going to Eclipse for 2015 (along with Java). You can search around NI's website & find information on how they implement Linux. They are doing it on other platforms than the RoboRio I doubt that it is a hack. The current Crio uses a different operating system.
  #10   Spotlight this post!  
Unread 28-05-2014, 13:52
taichichuan's Avatar
taichichuan taichichuan is offline
Software Mentor
AKA: Mike Anderson
FRC #0116 (Epsilon Delta)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Herndon, VA
Posts: 333
taichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud of
Send a message via AIM to taichichuan
Re: Sources for new WPILib available yet?

Quote:
Originally Posted by FrankJ View Post
+1 applying for Beta. That is where you can provide the best feedback.

C++ is going to Eclipse for 2015 (along with Java). You can search around NI's website & find information on how they implement Linux. They are doing it on other platforms than the RoboRio I doubt that it is a hack. The current Crio uses a different operating system.
OK, I've applied for the Beta. Thanks for the link.

I've been using Eclipse for embedded Linux work on ARM architectures since 2006 and I helped develop some of the VxWorks operating system-level code that ran on the cRio. So, I'm familiar with the issues of translating from one to the other. Also, I'm on the Arduino Tre beta-test team where we're mixing a Beaglebone black and an Arduino Leonardo on the same board. In that process, I've also rebuilt the kernel and perfomed several tests to prove out functionality.

From what I've read so far, the NI Linux release looks like a standard 3.x kernel with the PREEMPT_RT patch applied. But, I'll wait to actually see some of it to make sure. As for the processor, the Zynq 7000 used on the roboRIO is a known quantity. So, they shouldn't be having too many issues with the kernel port these days. The only issue will be the device tree structure that they've put together for the BSP on the Zynq. Given the pinmux isses of so many I/O pins, but no way to route them, it's easy to make mistakes.

Due to the limited storage on the roboRIO, the Linux distribution will be a tricky tuning job that will be easy to miss things. I'm sure they're probably using Yocto to build it because that will give the best size. But, it will be interesting to see what they've included on the file system.

In any case, 2015 is shaping up to be a really interesting season. There are a lot of exciting possibilities for the new control system. But, only time will tell if they can be realized.

Thanks!

Mike
  #11   Spotlight this post!  
Unread 28-05-2014, 20:10
magnets's Avatar
magnets magnets is offline
Registered User
no team
 
Join Date: Jun 2013
Rookie Year: 2012
Location: United States
Posts: 748
magnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond repute
Re: Sources for new WPILib available yet?

Quote:
Originally Posted by virtuald View Post
It is actually available on a publicly accessible website if you happen to look hard enough.

Disclaimer: I am not on a alpha or beta testing team, nor have I received any special non-public information from anyone.
Do you mind sharing? I've looked at GitHub, Google Code, the FirstForge page, and the NI page, and I can't find it.
  #12   Spotlight this post!  
Unread 28-05-2014, 20:44
Jared's Avatar
Jared Jared is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Aug 2013
Rookie Year: 2012
Location: Connecticut
Posts: 602
Jared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond repute
Re: Sources for new WPILib available yet?

Googling "wpilib source" gives https://usfirst.collab.net/sf/projects/wpilib/
as one of the first few results. Then, under the wiki, you can find directions to install the eclipse plugins. The address that is hyperlinked is incorrect, but the text "http://frcbuilder.wpi.edu:8190/view/2015/job/eclipse-plugins/lastSuccessfulBuild/artifact/edu.wpi.first.wpilib.plugins.updatesite/target/site/" is correct.

Installing the plugins puts wpilib at C:\users\[your user]\wpilib\java\2014.03.267\lib\Wpilib-sources.jar. You can use winRar to extract the source code.

Exploring other pages on the site brings you to lost of other good stuff too, like

http://frcbuilder.wpi.edu:8190/view/...na/ws/WPILibJ/

which looks like what you're looking for.
  #13   Spotlight this post!  
Unread 28-05-2014, 21:53
taichichuan's Avatar
taichichuan taichichuan is offline
Software Mentor
AKA: Mike Anderson
FRC #0116 (Epsilon Delta)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Herndon, VA
Posts: 333
taichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud of
Send a message via AIM to taichichuan
Re: Sources for new WPILib available yet?

Quote:
Originally Posted by Jared View Post
Googling "wpilib source" gives https://usfirst.collab.net/sf/projects/wpilib/
as one of the first few results. Then, under the wiki, you can find directions to install the eclipse plugins. The address that is hyperlinked is incorrect, but the text "http://frcbuilder.wpi.edu:8190/view/2015/job/eclipse-plugins/lastSuccessfulBuild/artifact/edu.wpi.first.wpilib.plugins.updatesite/target/site/" is correct.

Installing the plugins puts wpilib at C:\users\[your user]\wpilib\java\2014.03.267\lib\Wpilib-sources.jar. You can use winRar to extract the source code.

Exploring other pages on the site brings you to lost of other good stuff too, like

http://frcbuilder.wpi.edu:8190/view/...na/ws/WPILibJ/

which looks like what you're looking for.
Unfortunately, all of this stuff appears to be for VxWorks and not for Linux. Many of the directories still have VxWorks build artifacts in them. So, it was interesting to take a look. However, this doesn't appear to the be Linux code.

In the Eclipse plugins, however, they do mention both Linux and OS/X. That's not to say that these are the real plugins. The Linux and OS/X references could be red herrings.

I'll keep looking...

Thanks!

Mike
  #14   Spotlight this post!  
Unread 28-05-2014, 22:34
Thad House Thad House is offline
Volunteer, WPILib Contributor
no team (Waiting for 2021)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Thousand Oaks, California
Posts: 1,099
Thad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond repute
Re: Sources for new WPILib available yet?

Something about the WPILib, is I think most off the communication libraries are not open sourced, but closed libraries that the 3 languages then access. I know those libraries do all the hardware and network communication, and the robot code just reads and writes directly to those. So most code would be fairly portable, and not usually interfacing at the system level.
__________________
All statements made are my own and not the feelings of any of my affiliated teams.
Teams 1510 and 2898 - Student 2010-2012
Team 4488 - Mentor 2013-2016
Co-developer of RobotDotNet, a .NET port of the WPILib.
  #15   Spotlight this post!  
Unread 29-05-2014, 08:20
taichichuan's Avatar
taichichuan taichichuan is offline
Software Mentor
AKA: Mike Anderson
FRC #0116 (Epsilon Delta)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Herndon, VA
Posts: 333
taichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud of
Send a message via AIM to taichichuan
Re: Sources for new WPILib available yet?

Quote:
Originally Posted by Thad House View Post
Something about the WPILib, is I think most off the communication libraries are not open sourced, but closed libraries that the 3 languages then access. I know those libraries do all the hardware and network communication, and the robot code just reads and writes directly to those. So most code would be fairly portable, and not usually interfacing at the system level.
If this were Windows or OS/X, then you'd be correct. Most of the libraries are closed. But, the WPILib is licensed under the BSD license and is therefore considered open source. Additionally, must of the libraries on Linux (the new roboRIO O/S) are available in source code. And, based on past issues with code like the hacked-up network tables code and the other communications code where they had problems (e.g., needing to take off the Nagle algorithm to get the C++ code to not overwhelm the FMS) communications libraries are precisely the places where WPI needs the most help.

It certainly is possible to have one set of binary libraries and then provide binding to different languages. This means that a bug in the library will cause all languages to fail equally ;-) . Brad Miller and his folks work diligently on the WPILib. But, putting extra sets of eyes on it only help to make it more robust and safer. The students in the beta tests will be trying to implement a robot as *users* of the code. But, those of us with significant development experience in the multi-core ARM Linux environment can help make sure that more of the inevitable multi-core Heisenbugs are terminated before the start of the 2015 season.
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 05:02.

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