Go to Post Robot? What robot?! - LightWaves1636 [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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
  #11   Spotlight this post!  
Unread 04-03-2011, 04:22 PM
Hjelstrom's Avatar
Hjelstrom Hjelstrom is offline
Mentor
FRC #0987 (High Rollers)
Team Role: Mentor
 
Join Date: Mar 2008
Rookie Year: 2005
Location: Las Vegas
Posts: 146
Hjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond repute
Re: Reading Driver Station Input to select Autonomous Routine

Sorry, I haven't conveyed exactly whats going on as well as I should. That code generates seq=0 when in autonomous. So that would imply to me that all of the switches read 1 during auto making the comment in the code incorrect. (thanks for the code tag idea too, I'll try to go back and edit that)

When I get time with the robot again, I'll look over the wiring and do some experiments to re-test the assumptions we're making. If I recall correctly the switch is wired to simply connect the digital inputs to ground so we're assuming there are pullup resistors on the DS board. That would be consistent with reading all 1's and also consistent with the way the code is inverting each bit before adding everything up.

Thanks very much for your brain cycles! It was a pleasure working with 365 a couple of years ago in Atlanta! You guys have a terrific team.

We do use the line sensor and encoders to know when to move to the next state. Thanks for the compliments. My son (8th grade) wrote most of the code for the robot. He's really picking up programming; he's already published an indie xbox 360 game too (its named "Phat Fly" if you want to look it up).
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 10:22 AM.

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