|
I am designing the software which executes on the PIC Micro-controller from scratch. Since the controller has both a manual and an automatic mode, I needed some way of communicating with the program. I chose to use the Hyper Terminal which comes with most Windows Op Systems. Any terminal emulator will do. The terminal window can use the same comm port as the Nova program so it is easy to debug without trying to run Nova. Since there are a number of commands I could use, I created a command parser in the software and display a help screen. A simple "?" followed by a Return displays the help screen. You can see some of the other commands available.
A command allows you to enter Az and El in the format AZnnn.n ELnnn.n
C command allows you to enter the current bearing and elevation just incase something went wrong (Great use in debugging).
E command allows you to toggle the echo mode so you can see what you are typing. The tracking programs which use the EasyComm protocol, do not accept data into the serial port thus the port overflows on input data causing headaches.
H command allows you to move the antenna to the home position. The azimuth and elevation data is set to the home bearings when the home switches are encountered. These home switches should be mechanically set to a known bearing.
P command allows you to move to a park position which is probably different from the home position.
Various S commands allow you to enter data for parameters used by the software. Some of the parameters which are used in calculation, are stored in EEProm and retrieved upon boot up.
Speaking of boot up (power on), when the controller detects it has lost power, it stores all volitle data in EEProm prior to loosing power. This data is then restored when power is turned back on. This way, we don't loose the position of the antenna if we loose power - been there, done that!
|