Go to Post Originality in Sponsorship can get you a lot of places. - MysterE [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 21-01-2008, 19:24
nukelear1991 nukelear1991 is offline
Registered User
AKA: Mike Poff
FRC #0858 (Delphi Demons)
Team Role: Tactician
 
Join Date: Sep 2007
Rookie Year: 2006
Location: Wyoming,MI
Posts: 23
nukelear1991 is on a distinguished road
Programming IR Functions/Commands

Im wondering how do I program the different commands that the IR board is supposed to recieve.I understand how to train the board bt actually programming it confuzzles me a little bit. I also need help setting it up so it will be working.
Thank You,
Nukelear
__________________


2009 Lansing District Event Champions
  #2   Spotlight this post!  
Unread 21-01-2008, 19:42
Matt H. Matt H. is offline
Long Distance Mentor
FRC #1726 (N.E.R.D.S.)
Team Role: Alumni
 
Join Date: May 2006
Rookie Year: 2007
Location: Sierra Vista, AZ
Posts: 238
Matt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond repute
Re: Programming IR Functions/Commands

I'm not sure if I understand your question. You never actually program the board itself. You simply train the board and then run PWM cables from the boards various pins to digital inputs on the OI. Then because each button push causes a pin to receive voltage you will be able to do various things based on the state of that pin.
  #3   Spotlight this post!  
Unread 21-01-2008, 20:17
nukelear1991 nukelear1991 is offline
Registered User
AKA: Mike Poff
FRC #0858 (Delphi Demons)
Team Role: Tactician
 
Join Date: Sep 2007
Rookie Year: 2006
Location: Wyoming,MI
Posts: 23
nukelear1991 is on a distinguished road
Re: Programming IR Functions/Commands

So If I had CMD1 (or w/e) plugged into Digital in I would type

rc_dig_in01 == 1 then
{
hybrid function
}

or something along those lines
__________________


2009 Lansing District Event Champions
  #4   Spotlight this post!  
Unread 21-01-2008, 20:20
Matt H. Matt H. is offline
Long Distance Mentor
FRC #1726 (N.E.R.D.S.)
Team Role: Alumni
 
Join Date: May 2006
Rookie Year: 2007
Location: Sierra Vista, AZ
Posts: 238
Matt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond repute
Re: Programming IR Functions/Commands

Yes I believe that is correct.
  #5   Spotlight this post!  
Unread 21-01-2008, 20:57
MiniNerd24's Avatar
MiniNerd24 MiniNerd24 is offline
Are you going to eat that?
FRC #2039 (Rockford Robotics)
Team Role: Programmer
 
Join Date: Dec 2007
Rookie Year: 2006
Location: Illinois
Posts: 375
MiniNerd24 is a jewel in the roughMiniNerd24 is a jewel in the roughMiniNerd24 is a jewel in the roughMiniNerd24 is a jewel in the rough
Re: Programming IR Functions/Commands

Hi i was wondering how we can do a multi functional button code. e.g. Command a goes forward, Command b stops etc.
__________________
The system is down.


Rockford Robotics 2039: Think outside the bots.
  #6   Spotlight this post!  
Unread 21-01-2008, 21:05
Matt H. Matt H. is offline
Long Distance Mentor
FRC #1726 (N.E.R.D.S.)
Team Role: Alumni
 
Join Date: May 2006
Rookie Year: 2007
Location: Sierra Vista, AZ
Posts: 238
Matt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond repute
Re: Programming IR Functions/Commands

There is a large section of the rules devote to this subject--I will do my best to summarize, but please read the rules.

You may send up to four distinct commands using the IR remote. You may not send commands involving code (like morse code) or in anyother way attempt to get more than four actions out of your four distinct commands. This is ideally to encourage people to create higher level command structures.

A sample set up might look like this.
Button 1--goes forward 2 seconds
Button 2--turns left 20 degrees
Button 3--turns right 20 degrees
Button 4--Reverse 2 seconds

You may not control your robot based off of a continually held down button.

Does that answer your question?
  #7   Spotlight this post!  
Unread 21-01-2008, 21:11
MiniNerd24's Avatar
MiniNerd24 MiniNerd24 is offline
Are you going to eat that?
FRC #2039 (Rockford Robotics)
Team Role: Programmer
 
Join Date: Dec 2007
Rookie Year: 2006
Location: Illinois
Posts: 375
MiniNerd24 is a jewel in the roughMiniNerd24 is a jewel in the roughMiniNerd24 is a jewel in the roughMiniNerd24 is a jewel in the rough
Re: Programming IR Functions/Commands

Our remote continuousy pulse too. I forgot to mention that.
Thanks though we will try that idea too.
__________________
The system is down.


Rockford Robotics 2039: Think outside the bots.
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
Commands Barchechath Programming 7 05-02-2007 18:55
Programming the vex microcontroller to respond to commands on the serial port crashoverride02 Programming 1 20-10-2006 14:17
Programming Trigonometric Functions Dan894 Programming 4 14-02-2006 20:27
Functions of '?', ':', and '&' in the C programming language DanDon Programming 8 05-05-2005 09:25
at commands in c++ daroch Programming 1 04-03-2005 01:01


All times are GMT -5. The time now is 18:35.

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