Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Question about CanTalonSRX.h (http://www.chiefdelphi.com/forums/showthread.php?t=133455)

PaolaHenriquez 24-01-2015 14:31

Question about CanTalonSRX.h
 
Our robot uses TalonSRX's in a CAN configuration. We want to add these objects to RobotDrive. However, RobotDrive only accepts SpeedController objects and channel numbers as uint32_t. CanTalonSRX does not extend from SpeedController so it's impossible for us to use CAN TalonSRX's for our DriveTrain because we can't program it. I was wondering why this is the case and how to pass CanTalonSRX objects into RobotDrive.

ozrien 24-01-2015 14:39

Re: Question about CanTalonSRX.h
 
Use the CANTalon class, it implements CANSpeedController.
Please read section 3.4 in the Talon SRX Software Reference Manual.

Joe Ross 24-01-2015 14:41

Re: Question about CanTalonSRX.h
 
CANTalonSRX is a low level class. CANTalon is what you're looking for. It extends CANSpeedController which extends SpeedController.

PaolaHenriquez 24-01-2015 14:45

Re: Question about CanTalonSRX.h
 
Thanks!


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

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