Go to Post Brandon, your amazing! CD media will rock my socks off more then DS&K! :p Ok, maybe I won't go that far. - Kyle Love [more]
Home
Go Back   Chief Delphi > Technical > Control System
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 31-01-2017, 22:36
fovea1959's Avatar
fovea1959 fovea1959 is offline
Herder of programmers
AKA: Doug Wegscheid
FRC #3620 (The Average Joes)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: St Joseph
Posts: 336
fovea1959 will become famous soon enough
MXP Expansion Pins

I was looking at the docs for the MXP expansion port, and see that some of the pins are labelled for multiple functions.

For example, pin 31 is labelled "DIO 10/PWM 6". I imagine it can be used as either a PWM or DIO, but what determines which it is?

Where is the reference for how to map Roborio channels to the MXP expansion pins?
Reply With Quote
  #2   Spotlight this post!  
Unread 31-01-2017, 23:06
Chris_Elston's Avatar
Chris_Elston Chris_Elston is offline
Controls Engineer
AKA: chakorules
FRC #1501 (Team THRUST)
Team Role: Engineer
 
Join Date: Feb 2004
Rookie Year: 2001
Location: Huntington, Indiana
Posts: 751
Chris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond repute
Re: MXP Expansion Pins

Try this page:

http://www.pdocs.kauailabs.com/navx-.../io-expansion/
__________________
Team T.H.R.U.S.T. 1501
Download all of our past robot's source code here:Repository

Favorite CD quote:
"That can't be their 'bot. not nearly enough (if any) rivets to be a 1501 machine." ~RogerR: Team #1369
Reply With Quote
  #3   Spotlight this post!  
Unread 01-02-2017, 09:49
fovea1959's Avatar
fovea1959 fovea1959 is offline
Herder of programmers
AKA: Doug Wegscheid
FRC #3620 (The Average Joes)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: St Joseph
Posts: 336
fovea1959 will become famous soon enough
Re: MXP Expansion Pins

Missed that one; was working off the MXP pinouts. Thanks!

If I do a "new DigitalInput(10)" in my Java code, Navx/MXP port 0 functions as a DIO, and if I do a "new Talon(10)" in the code, if functions as a PWM, and if I do both, I will have a bad debugging session?

I was wondering about a pin being either a DIO, PWM, or SPI/I2C, but I missed the break in numbering in the DIOs; a pin that can be used as a DIO can be also be used as only *one* of PWM/I2C/SPI, and can only be used as one of those functions (a DIO or the altenative...)

https://github.com/kauailabs/navxmxp...bot/Robot.java also helps.

Last edited by fovea1959 : 01-02-2017 at 09:58. Reason: lack of clarity
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 12:34.

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