add time based vector and DRM support
This commit is contained in:
@@ -55,6 +55,14 @@ config TIME_BASED_VECTOR_LENGHT
|
||||
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.
|
||||
|
||||
config VECTOR_FOLLOW_TRACK_RATE
|
||||
bool "Time based vector follows change of track"
|
||||
default 1
|
||||
help
|
||||
Make Time based vector follows change of track of aircraft.
|
||||
This option will turn the vector from line into curve.
|
||||
This is of course be more computationaly expensive.
|
||||
|
||||
comment "Receiver configuration"
|
||||
|
||||
config FALLBACK_LAT
|
||||
@@ -76,3 +84,70 @@ config METRIC
|
||||
default y
|
||||
help
|
||||
Show altitudes in meters instead of feet.
|
||||
|
||||
comment "Platform dependent options"
|
||||
|
||||
choice
|
||||
prompt "Build target"
|
||||
default BUILD_LINUX
|
||||
help
|
||||
Select platform you want p-rad to be compiled for.
|
||||
|
||||
config BUILD_LINUX
|
||||
bool "Linux"
|
||||
|
||||
config BUILD_PICO
|
||||
bool "PI pico W"
|
||||
|
||||
config BUILD_OTHER_UNIX
|
||||
bool "Other Unix/Posix compatable system (NOT IMPLEMENTED)"
|
||||
endchoice
|
||||
|
||||
|
||||
|
||||
if BUILD_LINUX
|
||||
|
||||
|
||||
choice
|
||||
prompt "SDL render target"
|
||||
default SDL_TARGET_WINDOW
|
||||
help
|
||||
Select where you want SDL3 to render to.
|
||||
|
||||
config SDL_TARGET_WINDOW
|
||||
bool "Full-Screen Window"
|
||||
help
|
||||
Render to Full-Screen Window using window system like X11 or wayland.
|
||||
|
||||
config SDL_TARGET_KMSDRM
|
||||
bool "Direct to DRM"
|
||||
help
|
||||
Render directly to GPU using kmsdrm
|
||||
endchoice
|
||||
|
||||
|
||||
|
||||
endif
|
||||
|
||||
if BUILD_LINUX || BUILD_OTHER_UNIX
|
||||
|
||||
config SDL_DRIVERS
|
||||
string "Enabled SDL3 render drivers"
|
||||
default "gpu,vulkan,opengl"
|
||||
help
|
||||
Comma-speparated list of drivers,
|
||||
SDL will try each name, in the order listed, until one succeeds or all of them fail.
|
||||
leave empty and SDL will attempt to choose the best option for you,
|
||||
based on what is available on the your system.
|
||||
(I dont recommend leaving this option empty.)
|
||||
Available drivers can be listed by running this code:
|
||||
#include <SDL3/SDL.h>
|
||||
int main() {
|
||||
SDL_Init(SDL_INIT_VIDEO);
|
||||
SDL_Log("Available renderer drivers:");
|
||||
for (int i = 0; i < SDL_GetNumRenderDrivers(); i++) {
|
||||
SDL_Log("%d. %s", i + 1, SDL_GetRenderDriver(i));
|
||||
}
|
||||
}
|
||||
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user