Forum: Programming
10-12-2016, 17:49
|
|
Replies: 22
Views: 2,549
|
Forum: Programming
08-12-2016, 01:03
|
|
Replies: 22
Views: 2,549
|
Forum: C/C++
29-11-2016, 03:20
|
|
Replies: 4
Views: 344
Re: Should we use std::unique_ptr?
We also started using smart pointers in WPILib so we could express ownership semantics. As the name implies, std::unique_ptr represents an object with one owner.
Since no one has mentioned this yet,...
|
Forum: Programming
29-11-2016, 02:44
|
|
Replies: 7
Views: 1,086
Re: Eclipse Mars vs Neon
As Peter Johnson said, we are supporting Neon. The plugins were released late because it took us a while to fix the installation process with Neon.
|
Forum: Programming
27-11-2016, 02:55
|
|
Replies: 3
Views: 522
Re: Installing frc toolchain on NixOS
If you're up for it and are familiar with NixOS's packaging system, you could make new packages for your distro to build everything from source. That's what I did for Arch Linux because it fit Arch's...
|
Forum: Programming
15-10-2016, 21:06
|
|
Replies: 18
Views: 1,353
|
Forum: General Forum
15-10-2016, 18:34
|
|
Replies: 50
Views: 6,250
Re: [FRC Blog] Control System Update
Our motivation for pulling out the third party libraries was our inability to adequately test all hardware devices that came along, decoupling our release/update schedule from (possibly) many...
|
Forum: Programming
15-10-2016, 03:23
|
|
Replies: 18
Views: 1,353
|
Forum: General Forum
14-10-2016, 03:32
|
|
Replies: 50
Views: 6,250
Re: [FRC Blog] Control System Update
The CAN motor controllers are a big maintenance burden for us. At least in C++, the CANTalon code is 5.5k lines of code spread over two classes (we use a PIMPL pattern). Half of this is a class we...
|
Forum: Programming
09-08-2016, 03:28
|
|
Replies: 4
Views: 736
Re: Simulate a Webcam with Pictures (Or IP Camera)
You could use gstreamer to do that. The following script will run an MJPEG server on localhost port 8080 using JPEG images from the current directory that match the name pattern. They will be served...
|
Forum: Programming
09-07-2016, 08:08
|
|
Replies: 5
Views: 905
Re: The OpenRIO C++ Coding Guidelines for FRC
Given that this a technical discussion of C++, I thought I'd give my thoughts at length.
I'd say std::unique_ptr has no overhead since it's a wrapper for what one would be doing with raw owning...
|
Forum: C/C++
24-06-2016, 17:53
|
|
Replies: 4
Views: 1,590
Re: Eclipse Neon W/ Robot C++ Dev Plugins
I noticed that this morning as well and am working with the other WPILib devs on fixing the plugins. In the meantime, you can get older eclipse package versions from...
|
Forum: C/C++
17-01-2016, 15:54
|
|
Replies: 12
Views: 794
Re: Robotbuilder c++ code dies in Test Mode
I think std::static_pointer_cast will work here. The type is definitely a Talon, so std::dynamic_pointer_cast isn't necessary. Note that the pointer passed in can't be that of a stack allocated...
|
Forum: Technical Discussion
10-01-2016, 15:06
|
|
Replies: 7
Views: 911
Re: C++ Code Not working
I've found the indexer to not be the ultimate authority on whether one's C++ code compiles. Try building the project and seeing if that error prints in the build console as well. If it doesn't and...
|
Forum: Technical Discussion
09-01-2016, 22:13
|
|
Replies: 7
Views: 911
Re: C++ Code Not working
Is that error being shown by the Eclipse indexer, the build console, or both? Did you start from an example project, and if so, which was it?
|
Forum: Programming
07-01-2016, 15:39
|
|
Replies: 7
Views: 1,382
Re: 2016 C++ Toolchain and El Capitan
You could make your own RPM packages based on the build commands in the Debian package sources. The Arch Linux packages are probably easier to read though as they are basically shell scripts with...
|
Forum: Programming
28-09-2015, 15:22
|
|
Replies: 17
Views: 3,641
|
Forum: Programming
28-09-2015, 14:05
|
|
Replies: 17
Views: 3,641
Re: NetworkTables needs to change.
The repository for the new NetworkTables code is located at https://github.com/PeterJohnson/ntcore. It's included in WPILib as a Git submodule.
|
Forum: General Forum
01-09-2015, 20:21
|
|
Replies: 9
Views: 1,528
Re: About the WPI Library
LTGLambChops, the latest roboRIO image has logging functionality that could help you, once it becomes available. There's a patch under review at https://usfirst.collab.net/gerrit/997/ that adds...
|
Forum: Programming
02-08-2015, 22:32
|
|
Replies: 3
Views: 1,638
Re: Analysis of the drive() method
If you want, you could clone WPILib, commit your drive() documentation improvements, generate a patch with "git format-patch", and submit that patch in a new bug in the bug tracker. I can submit your...
|
Forum: Programming
07-07-2015, 22:21
|
|
Replies: 15
Views: 2,928
|
Forum: Programming
06-07-2015, 06:53
|
|
Replies: 15
Views: 2,928
Re: How do you use the WPILib?
What classes do you use the most?
This year, we used the CANTalon in place of Encoder, PIDController, and DigitalInput.
SampleRobot
CANTalon
Solenoid
Timer
Do you edit any of the provided classes?
|
Forum: Programming
06-03-2015, 22:14
|
|
Replies: 3
Views: 1,790
|
Forum: Programming
11-02-2015, 11:48
|
|
Replies: 9
Views: 1,680
Re: WPILib C++ Deploy went away?
The Java perspective thing doesn't seem to match my scenario. I never explicitly switch to the Java perspective, nor does the UI show being changed to that, when this bug occurs. Also, I just tried...
|
Forum: Programming
11-02-2015, 11:36
|
|
Replies: 9
Views: 1,680
Re: WPILib C++ Deploy went away?
I can corroborate what JefferMC said; same thing here. I've also had deploy not work when I select it. The menu will close, Eclipse will freeze for a bit, then the console will briefly show up then...
|