View Single Post
  #2   Spotlight this post!  
Unread 24-03-2010, 15:40
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: command line input...

can it be done? yes
is it competition legal? most likely not
what would you need to do? lots

you would need to manage a socket connection, and listen for incoming data, once you heard the enter key, the proceed to a switch or if's which would get the first word, and call that function (optional), then process the rest of the input and do the function. why you would want this (aside from the coolness factor) is beyond me. unless you have a expert typist, i would not want to control a robot like this

this would definitely go in the summer project bin
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib

Last edited by byteit101 : 24-03-2010 at 15:40. Reason: typo
Reply With Quote