Go to Post The honor from any given job is not so much what you are doing, but how you do it; the hardest working garbage man deserves more honor then the laziest super hero. - Josh Hambright [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 03-01-2017, 21:07
JohnGaby JohnGaby is offline
Registered User
FRC #2102
 
Join Date: Jan 2014
Location: Encinitas
Posts: 24
JohnGaby is an unknown quantity at this point
Re: Programming website

The motor controllers it can currently handle use PWM, both simple a PWM signal which controls the duty cycle of the motor (via an H-Bridge), or a servo like PWM signal where the pulse width controls both the speed and direction of the motor.

I am not familiar with CAN bus controllers other than the TALON SRXs used by FRC.

Documentation for the Java classes can be found on the website:

http://programming.sdarobotics.org/R...annotated.html
Reply With Quote
  #2   Spotlight this post!  
Unread 04-01-2017, 10:07
cbf cbf is offline
Registered User
FRC #2877
 
Join Date: Feb 2012
Location: Newton, MA
Posts: 74
cbf is just really nicecbf is just really nicecbf is just really nicecbf is just really nicecbf is just really nice
Re: Programming website

Ah, if I'd discovered this sooner, we might have been tempted to try to add CAN bus support. Maybe post-season.

In the meantime, for reference: Here's a tutorial on setting up CAN bus for Raspberry PIs and Arduino's (and Intel Galileo). The hardware is a little clunky though (DB9s are a little big for the robot. I'd rather just have terminals for twisted pair.
Reply With Quote
  #3   Spotlight this post!  
Unread 04-01-2017, 10:30
JohnGaby JohnGaby is offline
Registered User
FRC #2102
 
Join Date: Jan 2014
Location: Encinitas
Posts: 24
JohnGaby is an unknown quantity at this point
Re: Programming website

Thanks for the link, but I have actually already seen it. The problem isn't so much figuring out how to talk on the CAN bus, but figuring out how to properly talk to the TALON SRX. As I said, in researching the topic (I had hoped I could find someone who had already done it) I discovered that the FRC TALONs use an encrypted keep-alive signal that is impossible to reproduce outside the FRC framework. Fortunately, the TALON manufacture provides alternate firmware that you can flash the TALONs with that gets around this problem. However I looked at the FRC source code for handling the TALONs and it is quite involved and I simply have not had the time to try and sort it out.

Last edited by JohnGaby : 04-01-2017 at 10:34.
Reply With Quote
Reply


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 08:47.

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