Skip to content

Commit

Permalink
remember gps_fixed_heading setting
Browse files Browse the repository at this point in the history
  • Loading branch information
KrakenRF committed Sep 6, 2023
1 parent 966b42d commit c6090ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _UI/_web_interface/kraken_web_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ def __init__(self):
self.module_signal_processor.latitude = dsp_settings.get("latitude", 0.0)
self.module_signal_processor.longitude = dsp_settings.get("longitude", 0.0)
self.module_signal_processor.heading = dsp_settings.get("heading", 0.0)
self.module_signal_processor.fixed_heading = dsp_settings.get("gps_fixed_heading", False)
self.module_signal_processor.gps_min_speed_for_valid_heading = dsp_settings.get("gps_min_speed", 2)
self.module_signal_processor.gps_min_duration_for_valid_heading = dsp_settings.get("gps_min_speed_duration", 3)

Expand Down Expand Up @@ -322,6 +323,7 @@ def save_configuration(self):
data["krakenpro_key"] = self.module_signal_processor.krakenpro_key
data["mapping_server_url"] = self.mapping_server_url
data["rdf_mapper_server"] = self.module_signal_processor.RDF_mapper_server
data["gps_fixed_heading"] = self.module_signal_processor.fixed_heading
data["gps_min_speed"] = self.module_signal_processor.gps_min_speed_for_valid_heading
data["gps_min_speed_duration"] = self.module_signal_processor.gps_min_duration_for_valid_heading

Expand Down

0 comments on commit c6090ba

Please sign in to comment.