Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   WPILib Suite 2017 (http://www.chiefdelphi.com/forums/showthread.php?t=153019)

AustinShalit 06-01-2017 08:52

WPILib Suite 2017
 
WPILib Suite 2017 has been released! There have been a number of significant changes to WPILib for the 2017 FRC season. Take a look at what is new this year: https://wpilib.screenstepslive.com/s...8-new-for-2017

Teams can get started by downloading the 2017 release through Eclipse by following these instructions: https://wpilib.screenstepslive.com/s...eclipse-c-java

You will not be able to deploy to your roboRIO until you image it with image version 2017v8 which is included with the FRC Update Suite.

We have been working hard updating the ScreenSteps documentation. If you notice anything out of place, please submit a report by completing the form at the bottom of page with the issue.

Bryan Herbst 06-01-2017 09:14

Re: WPILib Suite 2017
 
Quote:

WPILib for C++ and Java are now Open Source projects collectively called WPILib Suite and have moved to GitHub. You can view, download or clone any of the repositories in the WPILib Suite of repositories.
Woohoo!! This is fantastic news!

fsilberberg 06-01-2017 11:48

Quote:

Originally Posted by Bryan Herbst (Post 1625843)
Woohoo!! This is fantastic news!

An important clarification: we have always been open source. You receive a full copy of the sources when you install WPILib. However, we used to be on CollabNet, and we moved to GitHub for easier team access.

mdballard 06-01-2017 12:55

Re: WPILib Suite 2017
 
I was wondering when the Linux ToolChains will available on the following site: http://first.wpi.edu/FRC/roborio/toolchains/

The windows ToolChains appear to already be available.

Also, can someone confirm which versions of Ubuntu have been tested?

Thanks!
Matt Ballard
Mentor Team 4329

Philip Arola 06-01-2017 13:12

Re: WPILib Suite 2017
 
Quote:

We have moved away from the NIVision libraries in favor of OpenCV as a fully integrated solution.

AustinShalit 06-01-2017 14:57

Re: WPILib Suite 2017
 
Quote:

Originally Posted by mdballard (Post 1625938)
I was wondering when the Linux ToolChains will available on the following site: http://first.wpi.edu/FRC/roborio/toolchains/

The windows ToolChains appear to already be available.

Also, can someone confirm which versions of Ubuntu have been tested?

Thanks!
Matt Ballard
Mentor Team 4329

The linux toolchain should be there now. Please check again. In the instructions link it lists the supported versions of Ubuntu.

Joe Wilson 06-01-2017 16:15

Re: WPILib Suite 2017
 
Awesome, just installed the update.

I tried following the link to the CTRE libraries to get the CAN Talon library, and I get to the HERO CTRE Toolsuite download page, which claims it comes with the libraries for FRC, but I've DLed and installed it and the only thing it gives me is a tool for imaging the CTRE HERO board, and a CAN and Roborio configurator.

Are the CANTalon libraries just not posted yet, or am I missing something?

Joey1939 06-01-2017 16:51

Re: WPILib Suite 2017
 
Quote:

Originally Posted by Joe Wilson (Post 1626031)
Awesome, just installed the update.

I tried following the link to the CTRE libraries to get the CAN Talon library, and I get to the HERO CTRE Toolsuite download page, which claims it comes with the libraries for FRC, but I've DLed and installed it and the only thing it gives me is a tool for imaging the CTRE HERO board, and a CAN and Roborio configurator.

Are the CANTalon libraries just not posted yet, or am I missing something?

I used the Non-installer version which just has the libraries with instructions on where to place them. I would guess that the installer put the necessary files in your wpilib folder already. Go to C:/Users/you/wpilib/user/language/lib and check for the ctre library.
The updated wpilib is really nice because anything in that lib folder is automatically included in your eclipse robot projects.

Jacob C. 06-01-2017 17:23

Re: WPILib Suite 2017
 
Quote:

Originally Posted by Joe Wilson (Post 1626031)
*snip*
Are the CANTalon libraries just not posted yet, or am I missing something?

Quote:

Originally Posted by Joey1939 (Post 1626048)
*snip*
I would guess that the installer put the necessary files in your wpilib folder already.

Joey is correct.

The CAN Talon SRX Libraries are in the Installer - when you get to the component tree page of the installer you should see LabVIEW and C++/Java options. These contain all CTRE Libraries (outside of PCM/PDP).

The libraries are then installed in the background during the installation process - there's nothing else you need to do to have them integrated with Eclipse. Just put the appropriate include or import statement in your code.

Just as a note, there will be a final pre-kickoff installer uploaded later tonight that has several updates. Don't worry if you've already run the current installer - you can just run the new one and it will update everything appropriately.

Joe Wilson 06-01-2017 20:40

Re: WPILib Suite 2017
 
Painless and easy, nice work folks!

demosthenes2k8 07-01-2017 21:05

Re: WPILib Suite 2017
 
Are there any plans for setting up a purely-release download that can be used for something like TravisCI? Last year my team relied on manually copy-pasting the Java distribution into a repo that the Travis script would clone. This felt dirty and I always felt guilty about it. Either something like another PPA or similar would be hugely helpful.

MrNick 07-01-2017 22:15

Re: WPILib Suite 2017
 
Is there something wrong with the Java plugin? I just tried updating and while it looks like I have the new version (2017.1.1) I don't see any of the new features and none of the jar files have been touched. I tried uninstalling the plugin and deleting the files and then re-installing, but still no luck.

bdaroz 07-01-2017 22:16

Re: WPILib Suite 2017
 
I was really hoping for a more standardized library installation method (eg maven) this year. With the separating of the libraries this seems to significantly complicate anything but a "standard" installation, which can be difficult on some school locked-down computers.

fsilberberg 07-01-2017 22:29

Re: WPILib Suite 2017
 
Quote:

Originally Posted by demosthenes2k8 (Post 1626807)
Are there any plans for setting up a purely-release download that can be used for something like TravisCI? Last year my team relied on manually copy-pasting the Java distribution into a repo that the Travis script would clone. This felt dirty and I always felt guilty about it. Either something like another PPA or similar would be hugely helpful.

We support Maven as an alternative download method, this might be what you're looking for. See the article here: http://wpilib.screenstepslive.com/s/...ource/l/480976.

Quote:

Originally Posted by bdaroz (Post 1626865)
I was really hoping for a more standardized library installation method (eg maven) this year. With the separating of the libraries this seems to significantly complicate anything but a "standard" installation, which can be difficult on some school locked-down computers.

We do support Maven! I'd suggest checking out GradleRIO, which probably does what you want. Find it here: https://github.com/Open-RIO/GradleRIO. Note, however, that this is just for the standard WPILib libraries. We don't publish artifacts for 3rd party libraries.

Quote:

Originally Posted by MrNick (Post 1626864)
Is there something wrong with the Java plugin? I just tried updating and while it looks like I have the new version (2017.1.1) I don't see any of the new features and none of the jar files have been touched. I tried uninstalling the plugin and deleting the files and then re-installing, but still no luck.

As far as we're aware, there are no issues with the plugin like that. What version of Eclipse are you using? If you delete the ~/wpilib folder and restart Eclipse, what happens? It should re-extract the wpilib binaries.

MrNick 07-01-2017 22:44

Re: WPILib Suite 2017
 
Quote:

Originally Posted by fsilberberg (Post 1626876)
As far as we're aware, there are no issues with the plugin like that. What version of Eclipse are you using? If you delete the ~/wpilib folder and restart Eclipse, what happens? It should re-extract the wpilib binaries.

Tried that, no luck. Took a look in the plugins folder and found some older version jars. Deleted them and the wpilib folder, restarted and now I'm good. Thanks!

kylestach1678 08-01-2017 01:04

Re: WPILib Suite 2017
 
What is the difference between the 2016 C++ toolchain and the one for this year (2017)? I can't seem to find a changelog, and they're supposedly the same GCC version.

fsilberberg 08-01-2017 01:22

Re: WPILib Suite 2017
 
Quote:

Originally Posted by kylestach1678 (Post 1627002)
What is the difference between the 2016 C++ toolchain and the one for this year (2017)? I can't seem to find a changelog, and they're supposedly the same GCC version.

The installer itself had a few bugs fixed, and it has a new sysroot to match the 2017 image. The compiler version itself is the same.

apache8080 08-01-2017 02:34

Re: WPILib Suite 2017
 
Does anybody know where the API/Documentation is for the CTRE CANTalon library? It is not on the first wpilib documentation and I can't find it anywhere on the CTRE site.

My team uses Java. Last year the CANTalon library used to be built in to the WPILib but now it is part of the 3rd party libraries from CTRE. I have gotten that setup on my development machine but I can't find any documentation anywhere on classes in the library (javadoc).

19lmyers 08-01-2017 03:05

Re: WPILib Suite 2017
 
Quote:

Originally Posted by apache8080 (Post 1627045)
Does anybody know where the API/Documentation is for the CTRE CANTalon library? It is not on the first wpilib documentation and I can't find it anywhere on the CTRE site.

My team uses Java. Last year the CANTalon library used to be built in to the WPILib but now it is part of the 3rd party libraries from CTRE. I have gotten that setup on my development machine but I can't find any documentation anywhere on classes in the library (javadoc).

http://wpilib.screenstepslive.com/s/...arty-libraries should be of use. This page should be in a sticky somewhere, it's crucial and really hard to find...

demosthenes2k8 08-01-2017 12:56

Re: WPILib Suite 2017
 
Quote:

Originally Posted by fsilberberg (Post 1626876)
We support Maven as an alternative download method, this might be what you're looking for. See the article here: http://wpilib.screenstepslive.com/s/...ource/l/480976.

The repository that the page references doesn't seem to have any 2017 releases yet? I'm not finding any reference to "athena" like the page says, though that could be unfamiliarity with the maven structure

EDIT: Never mind, found it

apache8080 08-01-2017 13:26

Re: WPILib Suite 2017
 
Quote:

Originally Posted by 19lmyers (Post 1627047)
http://wpilib.screenstepslive.com/s/...arty-libraries should be of use. This page should be in a sticky somewhere, it's crucial and really hard to find...

I already followed those instructions and have the CTRE 3rd party libraries installed. I was just wondering where the documentation is for the library. I think the CANTalon Library is exactly the same as the wpilibj CANSpeedController. Does anybody know if this is right?

Crossle86 08-01-2017 16:50

Re: WPILib Suite 2017
 
Quote:

Originally Posted by Jacob C. (Post 1626068)
Just put the appropriate include or import statement in your code.

So where does one find out what the appropriate import statement is? I have not been able to locate any doc for the CTRE library.

john1945 08-01-2017 17:12

Re: WPILib Suite 2017
 
Quote:

Originally Posted by Crossle86 (Post 1627330)
So where does one find out what the appropriate import statement is? I have not been able to locate any doc for the CTRE library.

Sadly, the documentation is lacking for the 2017 CTRE library.

The import statements are:

import com.ctre.CANTalon; // The main CAN talon device

import com.ctre.CANTalon.FeedbackDevice; // The modifiers for the CAN talon device
import com.ctre.CANTalon.StatusFrameRate;
import com.ctre.CANTalon.TalonControlMode;

After that use them as per last year.
For teams that did not keep last year's javadoc (or don't have a 2016 install) there isn't any source on the CTRE web site yet. I'm hoping that they will remedy this soon.

ozrien 08-01-2017 19:21

Re: WPILib Suite 2017
 
Migrating from 2016 to 2017 is explained in section 3.1.1 of the Talon SRX Software Reference Manual.

john1945 08-01-2017 19:56

Re: WPILib Suite 2017
 
Quote:

Originally Posted by ozrien (Post 1627430)
Migrating from 2016 to 2017 is explained in section 3.1.1 of the Talon SRX Software Reference Manual.

Hi Ozrien,
is it possible to get a javadoc to go with the new library, or is the SRM the only reference available?

ozrien 08-01-2017 20:54

Re: WPILib Suite 2017
 
We'll put up a javadoc soon, stay tuned. But in the mean time, I would take a look at the ref manual and our github examples.

wjd13 08-01-2017 21:24

Re: WPILib Suite 2017
 
Sorry I'm late to the party all. Are we saying that there is no javadoc up yet for the CANTalon library?

arshacker 09-01-2017 08:24

Re: WPILib Suite 2017
 
Has anyone actually written a sample program in either CPP or JAVA using the CTRE 2017 download for CANTALON (as opposed to TALON)?

In particular., declaring a m_cantalon object, instantiating the m_cantalon object, and creating both an open-loop and and a closed-loop mode for the m_cantalon object. For me TALON works(no closed-loop obviously), but CANTALON doesn't.

Both CPP and JAVA replies to this post will be appreciated.

ozrien 09-01-2017 09:51

Re: WPILib Suite 2017
 
Quote:

Originally Posted by arshacker (Post 1627724)
Has anyone actually written a sample program in either CPP or JAVA using the CTRE 2017 download for CANTALON (as opposed to TALON)?

In particular., declaring a m_cantalon object, instantiating the m_cantalon object, and creating both an open-loop and and a closed-loop mode for the m_cantalon object. For me TALON works(no closed-loop obviously), but CANTALON doesn't.

Both CPP and JAVA replies to this post will be appreciated.


Of course that was done, by us and by beta teams. And for the most part all you need to do is add an import/include for pre2016 cpp/java projects to work. Is there a specific problem you are seeing? Did you follow the steps in section 3.1.1 of the Talon srx software reference manual?

snekiam 09-01-2017 10:00

Re: WPILib Suite 2017
 
I'm probably confused by the maven repo structure, but I don't see anything from 2017 under http://first.wpi.edu/FRC/roborio/maven/release/. Am I looking in the wrong spot?

AustinShalit 09-01-2017 10:15

Re: WPILib Suite 2017
 
Quote:

Originally Posted by snekiam (Post 1627779)
I'm probably confused by the maven repo structure, but I don't see anything from 2017 under http://first.wpi.edu/FRC/roborio/maven/release/. Am I looking in the wrong spot?

You have the correct link. The last modified date for folders is a little weird. It only updates when we create the folder, not when its contents are updated. If you dig down a little bit you should start to see dates that make sense.

arshacker 10-01-2017 17:11

Re: WPILib Suite 2017
 
We usually work in cpp in eclipse-luna. Have problems with build not finding
cantalon and cantalonsrx header contents even though we included the new ctre locations. By the way..where is kVbus enumeration now.

No problems with java. Have written sample file with no errot msgs.

AustinShalit 21-01-2017 07:37

Re: WPILib Suite 2017
 
WPILib Suite 2017 Version 2017.2.1 has been released! You can update by opening Eclipse and clicking Help -> Check for Updates.

Release Notes:
WPILibC & WPILibJ:
  • CameraServer.startAutomaticCapture() will now automatically increment the USB device number (e.g. 0, 1, 2, etc).
  • Removed NetworkTables-driven camera settings (could prevent camera settings changes from taking effect due to dashboard caching)
  • Fixed solenoid allocation error message
  • Documentation updates

Eclipse Plugins:
  • Fix RoboRIO image version detection in presence of EOL in configuration
  • Improve IP address resolution during deployment
  • Excluded sources and javadoc JARs from user libs when building
  • Java and C++ debug deploys now deploy libraries
  • Added option to disable automatic library management

CSCore:
  • Fixed exception on camera creation when camera is not plugged in
  • Added properties setting capability through web server

NetworkTables (NTCore):
  • Documentation fixes

RobotBuilder:
  • Added support for ConditionalCommand


All times are GMT -5. The time now is 14:27.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi