Greetings;
I'm working on a project, which has a bunch of analog sensors, which when replaced, need to be calibrated. There are 8 int elements, which will need some data entered. Data is entered on a TFT touchscreen on which is a candy bar style keyboard (as of now 0-9, CLR and RTN)
I have the following array to fill.
struct PSensor {
int pId; //identifies Analog Channel (min channel 5)------not in PRESSURE
int pSamples; //number of samples to filter reading (default 1)
int pCalZero; //sensor reading with no water column
int pCalHigh; //sensor reading with max water column
int hRefZero; //actual NO watercolumn height of sensor in CM (default is 0)
int hRefHigh; //actual HIGH watercolumn height in CM (default 200)
int unitAdjust; // adjust units to display VOLUME on screen (default 0-> bars, 1->CM, other m3))
int maxVol; // maxVolume of tank (default 0)
};
I'm toying with two approaches:
1- 8 individual windows (with titles), and with every RTN, I jump to the next window OR
2- 1 large window, which takes all 8 elements in sequence and an additional "," or ":" button on the keyboard as a separator character.
3- is there another one?
The keyboard is operated with a switch/case routine.
I'm leaning towards #2, but due to inexperience I am a bit leary of of the parsing and conversion from characters on the screen to ints in order to fit it all into the array.
Any hints and tips are greatly appreciated. You guys have been awesome so far!