better organize configuration

This commit is contained in:
2026-08-05 19:08:30 +02:00
parent 1b0ed2b3e6
commit 45a4431b53
+19
View File
@@ -1,5 +1,7 @@
mainmenu "P-RAD configuration" mainmenu "P-RAD configuration"
comment "Readsb input config"
config BASE_URL config BASE_URL
string "HTTP backend base URL" string "HTTP backend base URL"
default "http://127.0.0.1:8200" default "http://127.0.0.1:8200"
@@ -7,6 +9,9 @@ config BASE_URL
Base URL of the backend the display fetches Base URL of the backend the display fetches
receiver and aircraft JSON from. receiver and aircraft JSON from.
comment "Main display configuration"
config AUTOSCALE config AUTOSCALE
bool "Autoscale range to fardest aircraft" bool "Autoscale range to fardest aircraft"
default y default y
@@ -40,6 +45,18 @@ config FIRST_RING_DISTANCE
help help
Distance of the first ring from the center of the screen. Distance of the first ring from the center of the screen.
config TIME_BASED_VECTOR_LENGHT
int "Lenght of time based vector (minutes)"
range 1 8
default 2
help
Time in minutes for time-Based vector represented by line stating in the middle of the an aircraft icon,
going in distance of travel the lenght of this line is controled by this setting.
For example if set to 2 minutes the line will end where the plane be in 2 minutes,
if direction and speed does not change.
comment "Receiver configuration"
config FALLBACK_LAT config FALLBACK_LAT
string "Fallback receiver latitude" string "Fallback receiver latitude"
default "50.000000" default "50.000000"
@@ -52,6 +69,8 @@ config FALLBACK_LON
help help
Longitude used when the receiver does not provide one. Longitude used when the receiver does not provide one.
comment "Unit configuration"
config METRIC config METRIC
bool "Use metric units" bool "Use metric units"
default y default y