Go to Post Welcome to ChiefDelphi.com. Get ready for the craziness. - Andy Baker [more]
Home
Go Back   Chief Delphi > Technical > Electrical > CAN
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 04-12-2015, 20:13
DngrousElectrcn DngrousElectrcn is offline
Registered User
no team
 
Join Date: Dec 2015
Location: the semi-frozen tundra
Posts: 1
DngrousElectrcn is an unknown quantity at this point
Talon SRX with an Arduino CAN shield

I am trying to make a Robot Operating System (ROS) node for controlling a Talon SRX.
My plan is to take the CanTalonSRX code from wpilib and write a custom CAN driver to replace the CAN driver the roborio uses. I will be using an Arduino with a CAN shield as a serial to CAN bridge.

Currently, I have debugging code in the CAN driver that prints out what the CanTalonSRX driver is trying to send over the CAN bus.

When I run:
Code:
CanTalonSRX motor(0);
motor.Set(.1);
it tries to send the following to the CAN bus:
Code:
33816576	0	0	0	0	0	0	0	0
33816576	0	0	0	0	102	32	0	0
The first digit is the ID field of the frame and the next 8 numbers are in the data field.
The first line is sent when the CanTalonSRX object is constructed and the second line is sent by motor.Set(.1).

I used the arduino to send [0 0 0 0 102 32 0 0] continuously as a test to see if I could get the motor spinning.
Needless to say, it did not spin. The lights on the Talon SRX are alternating flashing orange though.

Does anyone know the exact CAN frames a Talon SRX is looking for? The user manual and the software reference manual have no documentation of the exact bytes that are being sent in the CAN frames.
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 20:14.

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