Go to Post They were designed that way so they would be compatible with the water-based ga.... oops, sorry, we aren't supposed to say anything about that. Never mind. - dlavery [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

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 07-02-2002, 21:55
Curtis Williams Curtis Williams is offline
Registered User
#0588 (Team 588)
Team Role: College Student
 
Join Date: Jan 2002
Rookie Year: 2001
Location: Jacksonville, FL
Posts: 122
Curtis Williams is on a distinguished road
Send a message via ICQ to Curtis Williams Send a message via AIM to Curtis Williams Send a message via MSN to Curtis Williams Send a message via Yahoo to Curtis Williams
Additional Dashboard Data

I want to be able to receive the status of P2 and P4 x axis. Is there anyway to get this data from the dashboard port? The only thing I can think of is to copy the values of P2_x and P4_x to an unused PWM output and loop it into an analog input.

Does anyone know how to wire this? Is there another way I could do it?

thanks in advance
  #2   Spotlight this post!  
Unread 07-02-2002, 22:23
Joe Johnson's Avatar Unsung FIRST Hero
Joe Johnson Joe Johnson is offline
Engineer at Medrobotics
AKA: Dr. Joe
FRC #0088 (TJ2)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Raynham, MA
Posts: 2,644
Joe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond repute
You can use the OI/RC jumper on the OI to switch between seeing OI data sent TO the RC and RC data sent TO the OI.

It can be switched on the fly. The difficulty is that it cannot see BOTH at the same time.

Actually, I like your idea of using unused PWM outputs.

You also have the variable "output" that you can use. It is usually used to turn on lights on the OI and the RC but this does not mean that you cannot use it to send data back to the dashboard.

Joe J.
  #3   Spotlight this post!  
Unread 07-02-2002, 22:51
kiracofe8 kiracofe8 is offline
Registered User
#1317 (Digital Fusion)
Team Role: Engineer
 
Join Date: Nov 2001
Location: Columbus, OH
Posts: 30
kiracofe8 will become famous soon enough
Typically, what I have done is to swap port2 wheel and port2 x-axis (assuming that you don't care about the wheel value). This is pretty easy to do. Just take the bottom of the joystick off and move the wires around. There are quick disconnects onto the potentionmeters, so you don't even have to solder anything. Now, if you want port4 x-axis as well, that's a little harder. If you don't care about, say, port3 y-axis, you could build a crossover cable to swap those values... Last ditch effort, in software, you could loop the value back into the BASIC byte (which controls the LEDs on the OI).
As for the idea of looping a PWM output back into an analog input, that should work, but I've never tried it. You might need to put a filter capacitor on there to smooth the pulses into a real analog voltage. I think that this should be allowed within the new custom circuit board thing, but I could be wrong...
__________________
/* Daniel */
  #4   Spotlight this post!  
Unread 08-02-2002, 15:25
TerryDolan TerryDolan is offline
Registered User
#0302 (The Dragons)
 
Join Date: Jan 2002
Location: Lake Orion
Posts: 5
TerryDolan is an unknown quantity at this point
Software method

If all you want to do is get one variable at a time you can do it all in software. In the PBASIC code you can control the robot feedback lights on the Operator Interface. You can read at least 8 of the lights through the dashborad port, so you can break your byte in PBASIC into 8 bits, and piece it back together on the computer, if using your own dashboard recorder. We have done this many times.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Competition Scouting pauluffel Scouting 31 09-01-2003 00:34
Robot Scouting Database archiver 2001 10 24-06-2002 03:00
Limiting PWM in pbasic archiver 2001 4 24-06-2002 00:38
Possible Configuration to keep things cheap archiver 1999 8 23-06-2002 23:03
dashboard data stream archiver 2000 10 23-06-2002 22:56


All times are GMT -5. The time now is 21:55.

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