Closed MuffinSpawn closed 7 years ago
API option has been added.
The API part is done. I added the component property and added check in the Measure class function to query the environment parameters, call the Ciddor & Hill calculation, and pass the refraction index to the Measure API function. I still need to implement the algorithm.
Added temperature and pressure conversion functions. This is required for implementing the Ciddor Hill algorithm since the inputs must be in specific units.
Done. The LT client also now has a setting to turn manual index of refraction on and off.
The LT API Initialize function should allow for setting the weatherMonitorStatus to ReadOnly. Also, functionality should be added to the API to
1) get weather data, and 2) set the refraction index before a measurement.
Furthermore, the LT component should be updated to have a property that indicates which algorithm to use to calculate the refraction index. If it is "Leica:, then weatherMonitorStatus will be set to ReadAndCalculateRefractions, otherwise it will be set to ReadOnly and the component will monitor the environment parameters and set the refraction index properly before each measurement.
Refer to issues #17 for details on manually calculating the refraction index.