-
Notifications
You must be signed in to change notification settings - Fork 57
Description
Subject of the issue
I entered this in response to @nseidle 's request in #327 . This is just one possible approach. I like this approach because there is no mystery as to what calculations the firmware is performing. The user can enter their data, see the results of the calculations, and confirm that the device is operating as they intend.
To be completely clear to the user and prevent confusion, the Base Geodetic Coordinate Configuration page should contain both the HAE_APC and HAE_Mark elevation fields. These two fields should dynamically recalculate as the user enters Antenna_Height and APC_Offset.
So the form will have the following six fields:
Lat (user entered, loaded from CSV, or pasted from ZED. required to be non-blank but could be zero!)
Long (user entered, loaded from CSV, or pasted from ZED, required to be non-blank but could be zero!)
HAE_APC (Height above ellipsoid of the Antenna Phase Center) (display only?)
Antenna_Height (user entered optional, default to zero)
APC_Offset (use entered, optional, default to zero)
HAE_Mark (user entered, loaded from CSV, or calculated. required to be non-blank but could be zero)
This is a simplified request related to #330
Expected behavior
HAE_APC is sent and retrieved from the ZED. It is never loaded or saved to the CSV file.
HAE_Mark is loaded or saved to the CSV file.
HAE_APC and HAE_Mark are equal if Antenna_Height and APC_Offset are both zero.
When user copies coordinates from the ZED, the HAE from the ZED is loaded into HAE_APC. Then APC_Offset and Antenna_Height are subtracted from the HAE_APC and displayed in the HAE_Mark field.
When user types into the HAE_APC field (if we allow this, do we need to?), the APC_Offset and Antenna_Height are subtracted from the HAE_APC and displayed in the HAE_Mark field.
When user types into the HAE_Mark field,the APC_Offset and Antenna_Height are added to HAE_Mark and the sum is loaded into the HAE_APC field.
When the user saves coordinates to the CSV file, the HAE_Mark field is saved.
When the user loads coordinates from the CSV file, the HAE_Mark field is loaded from the file. The APC_Offset and Antenna_Height are added to HAE_Mark and the sum is loaded into the HAE_APC field.
It's a toss-up which direction to calculate (HAE_Mark --> HAE_APC, or HAE_APC --> HAE_Mark) when the user updates the Antenna_Height and/or APC_Offset field.
I work in HAE_Mark coordinates so I'd say always go HAE_Mark --> HAE_APC. That is, if Antenna_Height or APC_Offset are updated, recalculate HAE_APC.
Serial Menu?
I'm not sure what to do on the serial menu.