Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   SetVoltageRampRate (http://www.chiefdelphi.com/forums/showthread.php?t=127482)

Emeralddragon 04-03-2014 16:01

SetVoltageRampRate
 
Our robot this year is in need of a of a one second ramp on the Can jags.

This is what i have so far. along with earlier setup.
Code:

      TheSucker1.ConfigNeutralMode(CANJaguar::kNeutralMode_Coast);
                TheSucker1.ChangeControlMode(CANJaguar::kVoltage);
                TheSucker1.SetVoltageRampRate(1);
                TheSucker1.SetSafetyEnabled(false);
                TheSucker1.EnableControl();


martin417 04-03-2014 19:53

Re: SetVoltageRampRate
 
We have a CIM motor connected to a jaguar. We are using can Jaguars, and want a gradual ramp up of voltage. When calling the SetVoltageRampRate function, we know that an integer is required. No matter what number we use, there doesn't appear to be any ramp.

What are the units of this function? volts per second was my guess, but it doesn't seem to make a difference.

Any help appreciated.

Alan Anderson 05-03-2014 01:58

Re: SetVoltageRampRate
 
Quote:

Originally Posted by martin417 (Post 1353566)
What are the units of this function? volts per second was my guess, but it doesn't seem to make a difference.

The WPIlib documentation says you guessed right: "The maximum rate of voltage change in Percent Voltage mode in V/s." But it also says the parameter is a double, not an int, and it seems to imply that you have to use PercentVbus Mode rather than Voltage Mode.


All times are GMT -5. The time now is 12:11.

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