Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions package/fa_piaware_config.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -1072,6 +1072,8 @@ namespace eval ::fa_piaware_config {
{"uat-sdr-device" -default "driver=rtlsdr" -sdonly 1}

{"use-gpsd" -type boolean -default yes}
{"gpsd-host" -default "localhost"}
{"gpsd-port" -type integer -default 2947}
}

return [uplevel 1 ::fa_piaware_config::new ::fa_piaware_config::ConfigMetadata [list $name] [list $settings]]
Expand Down
4 changes: 3 additions & 1 deletion programs/piaware/health.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,9 @@ proc adept_location_changed {lat lon alt altref override} {
}

proc connect_to_gpsd {} {
set ::gpsd [::fa_gps::GpsdClient #auto -callback gps_location_update]
set gpsdHost [piawareConfig get gpsd-host]
set gpsdPort [piawareConfig get gpsd-port]
set ::gpsd [::fa_gps::GpsdClient #auto -host $gpsdHost -port $gpsdPort -callback gps_location_update]
$::gpsd connect
}

Expand Down