Go to Post One of our electrical engineers would bring his kids in every so often, so they could actually see their dad during build season. - Karthik [more]
Home
Go Back   Chief Delphi > Search Forums
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

Showing results 1 to 25 of 51
Search took 0.00 seconds.
search: Posts Made By: calcmogul
Forum: Programming 10-12-2016, 17:49
Replies: 22
Views: 2,549
Posted By calcmogul
Re: Velocity PID(F) Best Practices - To Integrate, or Not To Integrate?

If you don't have a model to use with a state space observer, that's a good alternative. WPILib has a LinearDigitalFilter class that implements PIDSource, so it can be used with WPILib's PID...
Forum: Programming 08-12-2016, 01:03
Replies: 22
Views: 2,549
Posted By calcmogul
Re: Velocity PID(F) Best Practices - To Integrate, or Not To Integrate?

I'm the person who implemented the velocity PID controller in WPILib last summer. If I understand correctly, an integrator is necessary and sufficient to eliminate steady-state error in controlling a...
Forum: C/C++ 29-11-2016, 03:20
Replies: 4
Views: 344
Posted By calcmogul
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
Posted By calcmogul
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
Posted By calcmogul
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
Posted By calcmogul
Re: Position and velocity PIDControllers using same encoder

Doing this between two PIDController Notifiers, which are real-time processes, isn't a good idea since the garbage collector introduces a lot of non-determinism and delays. If they are running at low...
Forum: General Forum 15-10-2016, 18:34
Replies: 50
Views: 6,250
Posted By calcmogul
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
Posted By calcmogul
Re: Position and velocity PIDControllers using same encoder

If I understand your mechanism correctly, you are using both PID controllers to drive the same plant. One handles the position state while the second handles the velocity state. Velocity and...
Forum: General Forum 14-10-2016, 03:32
Replies: 50
Views: 6,250
Posted By calcmogul
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
Posted By calcmogul
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
Posted By calcmogul
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
Posted By calcmogul
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
Posted By calcmogul
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
Posted By calcmogul
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
Posted By calcmogul
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
Posted By calcmogul
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
Posted By calcmogul
Re: NetworkTables needs to change.

I'm not sure. WPILib uses Java 8 exclusively so that's all we've bothered to test. Peter could give a definitive answer.
Forum: Programming 28-09-2015, 14:05
Replies: 17
Views: 3,641
Posted By calcmogul
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
Posted By calcmogul
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
Posted By calcmogul
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
Posted By calcmogul
Re: How do you use the WPILib?

SpeedController already has a SetInverted() method that does what you describe.
Forum: Programming 06-07-2015, 06:53
Replies: 15
Views: 2,928
Posted By calcmogul
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
Posted By calcmogul
Re: Error when building. powerpc-wrs-vxworks-g++ error

You need quotes around the argument to -I like the one provided by the FRC plugins. For example, -IC:\Users\My Dell\Desktop\Eclipse Projects\2015 practice robot\include should be -I"C:\Users\My...
Forum: Programming 11-02-2015, 11:48
Replies: 9
Views: 1,680
Posted By calcmogul
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
Posted By calcmogul
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...
Showing results 1 to 25 of 51

 
Forum Jump

All times are GMT -5. The time now is 09:01.

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