11use crate :: common_constants:: { self as cc, SbpLogging } ;
22use crate :: constants:: {
33 APPLICATION_NAME , APPLICATION_ORGANIZATION , APPLICATION_QUALIFIER , CONNECTION_HISTORY_FILENAME ,
4- DEFAULT_LOG_DIRECTORY , DEGREES , MAX_CONNECTION_HISTORY , MPS ,
4+ DEFAULT_LOG_DIRECTORY , MAX_CONNECTION_HISTORY , MPS ,
55} ;
66use crate :: errors:: { CONVERT_TO_STR_FAILURE , SHARED_STATE_LOCK_MUTEX_FAILURE } ;
77use crate :: log_panel:: LogLevel ;
88use crate :: output:: { CsvLogging , CsvSerializer } ;
99use crate :: piksi_tools_constants:: * ;
1010use crate :: settings_tab;
11+ use crate :: solution_tab:: LatLonUnits ;
1112use crate :: types:: CapnProtoSender ;
1213use crate :: update_tab:: UpdateTabUpdate ;
1314use crate :: utils:: set_connected_frontend;
@@ -496,7 +497,7 @@ pub struct SolutionPositionTabState {
496497 pub last_ins_status_receipt_time : Instant ,
497498 pub last_odo_update_time : Instant ,
498499 pub pause : bool ,
499- pub unit : String ,
500+ pub unit : Option < LatLonUnits > ,
500501 pub log_file : Option < CsvSerializer > ,
501502}
502503
@@ -508,7 +509,7 @@ impl SolutionPositionTabState {
508509 last_ins_status_receipt_time : Instant :: now ( ) ,
509510 last_odo_update_time : Instant :: now ( ) ,
510511 pause : false ,
511- unit : String :: from ( DEGREES ) ,
512+ unit : None ,
512513 log_file : None ,
513514 }
514515 }
0 commit comments