![]() |
Manual Ramping
I'm not sure if the title really explains what I'm talking about.
Rather than abrupt acceleration and deceleration, my team thought that it would be better if we went in increments, increasing speed on every iteration of the main loop. I sort of have an idea of the GET functions in the Jaguar, but are there any kind of SET functions that would allow for me to explicitly change the rpm? This is more or less of my pseudocode as of now, if this helps my rather horrid explanation/request. Code:
#include "WPILib.h" |
Re: Manual Ramping
Quote:
This only works in %Vbus mode and not the closed loop modes. If you plan on using Speed Mode you will need to ramp the speed commands sent to the Jag in the code running on the cRIO. I don't think it is exactly what you're looking for but there is one more way to ramp the output on the Jag without writing any code. You can rotate the two limit switch jumpers on the Jag horizontally (default is vertical) and the Jaguar will automatically set the ramp rate so that it ramps from full forward to full reverse in 1/8th of a second. This rate is hard coded in the firmware, so if you need something different you need to use the APIs. The Jaguar FAQ describes this in more detail. Quote:
If you don't want to use Speed Mode, you can still read the speed of an encoder connected to the Jag. You just have to enable speed mode and configure the encoder before switching back and operating in a different mode (like %Vbus). Again, I'm not familiar with the APIs, but I know they exist to operate all the different modes and features of Jaguar. I recommend trying things out with BDC-COMM, a Windows utility that allows you to play with all the features without writing code. -David |
| All times are GMT -5. The time now is 18:23. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi