Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   CAN Voltage Control (http://www.chiefdelphi.com/forums/showthread.php?t=113298)

arithehun 11-02-2013 21:02

CAN Voltage Control
 
So, I am trying to control a motor using the voltage model so I can set the ramp rate to about a 10 second build-up. However, the output seems to be null. Even the indication light remained a solid yellow. Everything works perfectly over VBus in this configuration.

Code:

shootingMotor = new CANJaguar(leftMotorId, CANJaguar.ControlMode.kVoltage);
setVoltageRampRate(0.10);
shootingMotor.setX(12);


arithehun 13-02-2013 03:33

Re: CAN Voltage Control
 
Bump

notmattlythgoe 13-02-2013 08:29

Re: CAN Voltage Control
 
Have you tried setting configMaxOutputVoltage(double voltage) ? I wonder if voltage control needs that set.

arithehun 13-02-2013 09:49

Re: CAN Voltage Control
 
Quote:

Originally Posted by notmattlythgoe (Post 1232632)
Have you tried setting configMaxOutputVoltage(double voltage) ? I wonder if voltage control needs that set.

I'll try that!

Joe Ross 13-02-2013 22:13

Re: CAN Voltage Control
 
You need to call enableControl();

arithehun 14-02-2013 01:14

Re: CAN Voltage Control
 
Quote:

Originally Posted by Joe Ross (Post 1233005)
You need to call enableControl();

Sweet! Thank you so much! I wish they had more documentation. Where would I find things like this?


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

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