Go to Post Is there a way to spotlight an entire thread? - ctt956 [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 02-16-2015, 06:31 PM
restouffer's Avatar
restouffer restouffer is offline
Registered User
AKA: Bob Stouffer
FRC #2539 (Krypton Cougars)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2010
Location: Palmyra, PA
Posts: 11
restouffer is an unknown quantity at this point
CAN Talon Does Not Move in Speed Mode

We have a CAN Talon SRX wired to an encoder. When in PercentVBus mode, the motor moves and we can see our encoder values changing. When changed to kSpeed mode, the motor does not move. We have checked the System Configuration webpage on the roboRIO, and have even run a Self-Test while this is running. The Self-Test shows an error and an applied throttle, but the motor does not move. We have tried values in the range of 20 to 200.

Here is a snapshot of one Self-Test:
Click image for larger version

Name:	talon-snapshot.png
Views:	49
Size:	17.4 KB
ID:	18391

We followed the code given in the Software Reference:

Code:
        elevatorMotor = new CANTalon(RobotMap::Elevator::elevatorMotorID);
	elevatorMotor->SetControlMode(CANSpeedController::kSpeed);
	elevatorMotor->SetSensorDirection(true);
	elevatorMotor->ConfigSoftPositionLimits(
		RobotMap::Elevator::maxPosition,
		RobotMap::Elevator::minPosition
	);
	elevatorMotor->SetPID(
		RobotMap::Elevator::P,
		RobotMap::Elevator::I,
		RobotMap::Elevator::D
	);
	elevatorMotor->SelectProfileSlot(0);
	elevatorMotor->SetIzone(300);
	elevatorMotor->SetCloseLoopRampRate(48);
	elevatorMotor->SetVoltageRampRate(0);
Code:
elevatorMotor->Set(speed);
Anyone have any thoughts?
Reply With Quote
 


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 10:09 AM.

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