Don't ad-block us - support your favorite websites. We have safe, unobstrusive, robotics related ads that you actually want to see - see here for more.
0 Members and 1 Guest are viewing this topic.
... or rather the transmitter (of a R/C car) is not able to handle both data at the same time.
Can you tell us more about your setup (electronics, interface, etc)?And if it's R/C, whats wrong with the remote? (a serious question!)
I would guess that the problem is with you key detect routine on the PC. You need to check for each key separately and then combine the results.Here is a link to some example VB code...http://www.vb-helper.com/howto_detect_arrow_keys.htmlYou may be using a different language, but the concept will be the same.
if (keydown == uparrow) {moveup = true;}if (keydown == downarrow) {movedown = true;}if (keydown == leftarrow) {moveleft = true;}if (keydown == rightarrow) {moveright = false;}if (keyup == uparrow) {moveup = false;}if (keyup == downarrow) {movedown = false;}if (keyup == leftarrow) {moveleft = false;}if (keyup == rightarrow) {moveright = false;}Then ya gotta: if (moveup = true && moveleft == true) {outb(5, 0x0378);}