Thread: Using keyboard
View Single Post
  #8   Spotlight this post!  
Unread 04-02-2015, 06:29
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Using keyboard

The VIs for reading the keyboard, like a video game does, are located in Connectivity>>Input Devices. Your dashboard will need to open the keyboard and in a loop, it will need to read the keyboard and update one or more "virtual joystick" SmartDashboard globals. I'd recommend doing a flush when setting them or it will only get transmitted to the robot at 100ms rate.

The other way to get the data to the robot is via UDP or TCP communications. You will need to make your own simple protocol, possibly just sending the keys via TCP is sufficient.

Greg McKaskle
Reply With Quote