Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Programming IR Functions/Commands (http://www.chiefdelphi.com/forums/showthread.php?t=62220)

nukelear1991 21-01-2008 19:24

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

Matt H. 21-01-2008 19:42

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.

nukelear1991 21-01-2008 20:17

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

Matt H. 21-01-2008 20:20

Re: Programming IR Functions/Commands
 
Yes I believe that is correct.

MiniNerd24 21-01-2008 20:57

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.

Matt H. 21-01-2008 21:05

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?

MiniNerd24 21-01-2008 21:11

Re: Programming IR Functions/Commands
 
Our remote continuousy pulse too. I forgot to mention that.
Thanks though we will try that idea too.


All times are GMT -5. The time now is 23:12.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi