|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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); |
|
#2
|
|||
|
|||
|
Re: CAN Voltage Control
Bump
|
|
#3
|
|||||
|
|||||
|
Re: CAN Voltage Control
Have you tried setting configMaxOutputVoltage(double voltage) ? I wonder if voltage control needs that set.
|
|
#4
|
|||
|
|||
|
Re: CAN Voltage Control
I'll try that!
|
|
#5
|
||||||
|
||||||
|
Re: CAN Voltage Control
You need to call enableControl();
|
|
#6
|
|||
|
|||
|
Re: CAN Voltage Control
Sweet! Thank you so much! I wish they had more documentation. Where would I find things like this?
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|