|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Multiple IR Key codes to activate four hybrid operating modes
Quote:
i cant see why not seeing it is still only four actions. correct me if im wrong. |
|
#2
|
|||||
|
|||||
|
Re: Multiple IR Key codes to activate four hybrid operating modes
Quote:
Quote:
Can we put the lawyers to bed now? I'm pretty sure the intent is FOUR buttons control FOUR commands, in a 1:1 ratio. |
|
#3
|
||||
|
||||
|
Re: Multiple IR Key codes to activate four hybrid operating modes
Quote:
Code:
int *fwd[] = {&relay1_fwd, &relay2_fwd, &relay3_fwd, &relay4_fwd, &relay5_fwd};
int *rev[] = {&relay1_rev, &relay2_rev, &relay3_rev, &relay4_rev, &relay5_rev};
int index = 0;
while(true){
if(button == 1)
index = (index + 1) % 5;
if(button == 2){
*(fwd[index]) = !*(fwd[index]);
*(rev[index]) = !*(rev[index]);
}
}
Code:
Button 1: Chooses a relay Button 2: Toggles a relay |
|
#4
|
|||||
|
|||||
|
Re: Multiple IR Key codes to activate four hybrid operating modes
Quote:
|
|
#5
|
|||
|
|||
|
Re: Multiple IR Key codes to activate four hybrid operating modes
• The ROBOT shall not dynamically change the recognized command set during a MATCH.
I was under the impression that this rule was to keep people from choosing which 4 signals to recognize after the match had already started, not it couldn't change it's reaction based on it. So if I were commanding my arm to a specific angle during autonomous it wouldn't be illegal for that to move the arm up sometimes and not others I don't think. But what if I had a + button a - button and 2 toggle mode buttons. The two buttons ALWAYS toggle the mode, the + and the - always effect the mode in the + or - direction... It's really hard to interpret such a rule if you read it as "your robot can only react in 4 different ways to inputs", which is why I think that really can't be. My 2 cents -nrv |
|
#6
|
||||
|
||||
|
Re: Multiple IR Key codes to activate four hybrid operating modes
But the thing is... does it mean physical actions or any action? because you could just map a button to a bit in a 4 bit number, and the remote will not send any encoded messages over nor will it be changing the message set dynamically. granted that would be a beast for the robocoach to control, but still...
|
|
#7
|
||||
|
||||
|
Re: Multiple IR Key codes to activate four hybrid operating modes
Quote:
A: cycles through positions on the overpass B: sets position (where our ball is) C: cycles through starting positions in the home stretch D: sets starting position that way the robot will know where it is and where the ball is, and can conduct itself appropriately. What is the CD opinion on that? |
|
#8
|
|||
|
|||
|
Re: Multiple IR Key codes to activate four hybrid operating modes
Why not just have a physical four-position switch on the robot connected to two digital inputs and use those to specify the position of the robot? You'll know it when you place it, and you have the freedom of using the fourth position to do whatever you want.
|
|
#9
|
||||
|
||||
|
Re: Multiple IR Key codes to activate four hybrid operating modes
Quote:
) so I'm inspired to play it how I think they want us to.We did do something similar to that last year with our various autonomous modes though. |
|
#10
|
|||||
|
|||||
|
Re: Multiple IR Key codes to activate four hybrid operating modes
Quote:
For example, using the number buttons, Drive straight: 241 Turn left: 134 Whack ball: 423 Stop: 123 The signal that the remote sends when you push one button is coded already, somehow, isn't it? I see no rule preventing you from changing the coding scheme. Might be a Q&A question...with emphasis that the intent of this method is to improve safety by reducing communication errors ![]() |
|
#11
|
||||
|
||||
|
Re: Multiple IR Key codes to activate four hybrid operating modes
Quote:
|
|
#12
|
||||
|
||||
|
Re: Multiple IR Key codes to activate four hybrid operating modes
Quote:
|
|
#13
|
|||||
|
|||||
|
Re: How many RoboCoach Commands?
Not at all! The message is what comes out the other end...and I am still only selecting one of 4 commands, which is what the rules allow.
Note that I specified the message in each case: For the message "Drive straight", the signal is: 241 For the message "Turn left", the signal is: 134 For the message "Whack ball", the signal is: 423 For the message "Stop", the signal is: 123 I have modified the SIGNAL to be 3 characters, but I have NOT changed the number of MESSAGES. The are still only 4 messages. =================================== To show you what would be illegal, consider this example of a use of a larger number of coded messages, with a smaller signal: The message "drive" uses a first digit of 1 The message "turn" uses a first digit of 2 The message "manipulate ball" uses a first digit of 3 The message "stop" uses a first digit of 4. Now, we get to the illegal part: For a first digit of 1, the second digit of 1 means "slow" For a first digit of 1, the second digit of 2 means "medium" For a first digit of 1, the second digit of 3 means "fast" For a first digit of 2, the second digit of 1 means "right" For a first digit of 2, the second digit of 2 means "left" For a first digit of 3, the second digit of 1 means "pop off overpass" For a first digit of 3, the second digit of 2 means "pick up" For a first digit of 3, the second digit of 3 means "drop" For a first digit of 4, the second digit of 1 means "with manipulator down" For a first digit of 4, the second digit of 2 means "with manipulator up" See how in this illegal example, we use only the 4 digits, and the signal is only two characters long, but it is decoded into ten different MESSAGES! |
|
#14
|
||||
|
||||
|
Re: How many RoboCoach Commands?
Quote:
Quote:
Last edited by jtdowney : 09-01-2008 at 08:54. |
|
#15
|
|||||
|
|||||
|
Re: How many RoboCoach Commands?
Pressing two buttons in sequence is not the same as pressing two buttons at once.
However, it is likely that the intent of that rule is also to prohibit the longer signal scheme I presented.....so if someone plans to use this scheme, it would be wise to ask about it on the Q&A |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Robocoach signals loophole? | jacobhurwitz | Rules/Strategy | 51 | 29-01-2008 09:16 |
| Too many R/C commands in a loop? | ManicMechanic | VEX | 1 | 02-07-2007 00:52 |
| How many targets? | geeknerd99 | Kit & Additional Hardware | 19 | 16-01-2007 18:16 |
| How Many Buttons? | Beth Sweet | Regional Competitions | 13 | 17-12-2006 21:32 |