Go to Post And then have FIRST throw a copy of the Atkins diet book in with each kit... - dlavery [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 04-03-2014, 16:01
Emeralddragon Emeralddragon is offline
Registered User
AKA: Jonathan C.
FRC #4509 (Mechanical Bulls)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2012
Location: Sugarhill, ga
Posts: 8
Emeralddragon is an unknown quantity at this point
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();

Last edited by Emeralddragon : 04-03-2014 at 16:11. Reason: code
Reply With Quote
  #2   Spotlight this post!  
Unread 04-03-2014, 19:53
martin417's Avatar
martin417 martin417 is offline
Opinionated old goat
AKA: Martin Wilson
no team
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2008
Location: Buford, GA
Posts: 720
martin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond repute
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.
__________________
Former Mentor Team 1771
Former mentor Team 4509
Reply With Quote
  #3   Spotlight this post!  
Unread 05-03-2014, 01:58
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: SetVoltageRampRate

Quote:
Originally Posted by martin417 View Post
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.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

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