Go to Post What a great organization! - HoltDan [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 20-11-2012, 13:19
ferret_guy ferret_guy is offline
Registered User
AKA: Mark Omo
FRC #1703 (RATS)
Team Role: Leadership
 
Join Date: Mar 2012
Rookie Year: 2008
Location: Henderson
Posts: 97
ferret_guy is on a distinguished road
Lightbulb Writing custom Jaguar motor controller firmware

I was thinking about writing custom Jaguar motor controller firmware in order to use the limit switch inputs as encoder inputs. This would allow the Jaguar to handle more elements of control and also simplify wiring at least for me. But is there an SDK to do this?
  #2   Spotlight this post!  
Unread 20-11-2012, 22:01
StevenB StevenB is offline
is having FRC withdrawal symptoms.
AKA: Steven Bell
no team
Team Role: College Student
 
Join Date: May 2005
Rookie Year: 2005
Location: Stanford, CA
Posts: 416
StevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond repute
Re: Writing custom Jaguar motor controller firmware

The Jaguar source code is available from TI (at least for now): http://www.ti.com/tool/rdk-bdc24-cd. More details in this thread.

I have to ask, though - Why isn't the built-in encoder input sufficient?
Also, be aware that last year it wasn't legal to use custom Jaguar firmware, per [R61]. I would be surprised if that changes this year.
__________________
Need a physics refresher? Want to know if that motor is big enough for your arm? A FIRST Encounter with Physics

2005-2007: Student | Team #1519, Mechanical Mayhem | Milford, NH
2008-2011: Mentor | Team #2359, RoboLobos | Edmond, OK
2014-??: Mentor | Looking for a team...
  #3   Spotlight this post!  
Unread 20-11-2012, 22:21
slijin's Avatar
slijin slijin is offline
Pockets
AKA: Samuel Lijin
FRC #0694 (StuyPulse)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York City
Posts: 537
slijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to behold
Re: Writing custom Jaguar motor controller firmware

I suggest you study the RDK's specs on the limit switch GPIOs to verify that they can actually handle the frequency resolution that effective encoder input demands.

Also, on top of Steven's question, is there a reason you can't handle encoder processing through another interface? I can't see it would simplify your wiring either, or even why the Jaguar would need to juggle input from two encoders.
__________________

2010-12 CT Chairman's
2011 Galileo 5th seed
2010 NY Regional Winners
  #4   Spotlight this post!  
Unread 20-11-2012, 23:26
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,100
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Writing custom Jaguar motor controller firmware

Quote:
Originally Posted by slijin View Post
I suggest you study the RDK's specs on the limit switch GPIOs to verify that they can actually handle the frequency resolution that effective encoder input demands.
FWIW, from LM3S2616 datasheet p348:

Quote:
Each GPIO port is a separate hardware instantiation of the same physical block. The LM3S2616 microcontroller contains five ports and thus five of these physical GPIO blocks.
The Jag encoder inputs are on port C, and the limit switches are on port B.


  #5   Spotlight this post!  
Unread 21-11-2012, 00:06
ferret_guy ferret_guy is offline
Registered User
AKA: Mark Omo
FRC #1703 (RATS)
Team Role: Leadership
 
Join Date: Mar 2012
Rookie Year: 2008
Location: Henderson
Posts: 97
ferret_guy is on a distinguished road
Re: Writing custom Jaguar motor controller firmware

I don't really want to write it because the functionality is not there mostly for the experience. Hopefully this year you will be allowed to customize your control system more this year.
  #6   Spotlight this post!  
Unread 21-11-2012, 01:54
s1900ahon s1900ahon is online now
Registered User
AKA: Scott McMahon
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 156
s1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant future
Re: Writing custom Jaguar motor controller firmware

What are your plans for handling the unpublished FIRST-specific CAN protocol extensions? In the past the encoders were not permitted without CAN.

If it is for fun and not FRC it is totally doable. Just watch the interrupt priorities to avoid starving the important stuff.
Closed Thread


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 00:27.

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