![]() |
IFI Loader - Advanced Console Debugging getch()
With the IFI Terminal/Console window it is possible to read output from the robot. Is there anyway to accept keyboard input and display specific debugging output?
For example, I would like to construct the following menu: Key Debug Info J - Joystick Ports R - Relays D - Digital I/O A - Analog then have a one-shot debug screen displayed and then wait for the next key. Trying squeeze everything into one printf("") and make sense out of it is tough. Thanks! Team #1711 Teaser Pics of our Week #3 Prototype |
Re: IFI Loader - Advanced Console Debugging getch()
all you need to do read from the serial port, ifi terminal can send characters
look at kevin watsons camera code from 07 for a terminal example kevin.org/frc |
Re: IFI Loader - Advanced Console Debugging getch()
Kevin did this in the terminal window for the camera menu settings. Look in Kevin.org's 2007 programs. The bells-and-whistles version, not the streamlined one. I tracked it down to this line:
terminal_char = Read_Terminal_Serial_Port(); But a quick search I couldn't find the Read_Terminal_Serial_Port function, but I didn't dig too deeply. Be forwarned, his code there is readable but there is lots of it. Duplicating it successfully isn't for the light-hearted. Kevin also suggests TeraTerm, another terminal emulator (it's under miscellanea). I've never tried it, but if he suggests it it is probably better than the current terminal window. (And on preview, someone snuck ahead of me again! Darn these slow fingers! But great minds think alike.) |
Re: IFI Loader - Advanced Console Debugging getch()
Thanks.. I found the code. Just 9-easy steps to an interactive terminal window.
Nine things must be done before this software will work |
| All times are GMT -5. The time now is 23:44. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi