Skip to content

Commit 7c78539

Browse files
authored
Merge pull request #12 from MacDaddyFPV/rpi-camera-settings
Rpi camera settings
2 parents 280d143 + ca32f57 commit 7c78539

File tree

1 file changed

+70
-4
lines changed

1 file changed

+70
-4
lines changed

Diff for: qml/ui/SettingsMap.qml

+70-4
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Item {
9090
interval: 1,
9191
unit: ""},
9292
"EXTRAPARAMS": {title: "Extra parameters",
93-
info: "Default is: -cd H264 -n -fl -ih -pf high -if both -ex sports -mm average -awb horizon",
93+
info: "Do not use the following in the EXTRAPARAMS as they are already applied: -cd -n -fl -ih -pf -if -ex -mm -awb -sh -co -br -sa -hf -vf",
9494
itemType: "string"},
9595
"FORWARD_STREAM": {title: "Hotspot video format",
9696
info: "Hotspot video can either be RTP encapsulated, or \"raw\" h264. RTP is recommended, as it helps the receiver prevent video distortion caused by minor RF interference. This setting must match on the receiver.",
@@ -109,7 +109,7 @@ Item {
109109
upperLimit: 5610,
110110
interval: 1,
111111
unit: ""},
112-
"VEYE_profile": {title: "VEYE Camera Profile",
112+
"camera_profile": {title: "Camera Profile",
113113
info: "Choose between numbered profiles or custom settings below",
114114
itemType: "choice",
115115
choiceValues: [{title: "Custom", value: "0"},
@@ -401,8 +401,74 @@ Item {
401401
itemType: "choice",
402402
choiceValues: [{title: "YUYV", value: "YUYV"},
403403
{title: "UYVY", value: "UYVY"}]},
404-
405-
404+
"rpi0_camera_exposure": {title: "RPI Camera Exposure Mode",
405+
info: "Choose the exposure mode for RPI camera. Note that not all of these settings may be implemented, depending on camera tuning.",
406+
itemType: "choice",
407+
choiceValues: [{title: "Off", value: "off"},
408+
{title: "Auto", value: "auto"},
409+
{title: "Night", value: "night"},
410+
{title: "Nightpreview", value: "nightpreview"},
411+
{title: "Backlight", value: "backlight"},
412+
{title: "Spotlight", value: "spotlight"},
413+
{title: "Sports", value: "sports"},
414+
{title: "Snow", value: "snow"},
415+
{title: "Beach", value: "beach"},
416+
{title: "Verylong", value: "verylong"},
417+
{title: "Fixedfps", value: "fixedfps"},
418+
{title: "Antishake", value: "antishake"},
419+
{title: "Fireworks", value: "fireworks"}]},
420+
"rpi0_metering_mode": {title: "RPI Camera Metering Mode",
421+
info: "Choose the metering mode for RPI camera.",
422+
itemType: "choice",
423+
choiceValues: [{title: "Average", value: "average"},
424+
{title: "Spot", value: "spot"},
425+
{title: "Backlit", value: "backlit"},
426+
{title: "Matrix", value: "matrix"}]},
427+
"rpi0_awb": {title: "RPI Auto White Balance Mode",
428+
info: "Choose the auto white balance mode for RPI camera.",
429+
itemType: "choice",
430+
choiceValues: [{title: "Off", value: "off"},
431+
{title: "Auto", value: "auto"},
432+
{title: "Sun", value: "sun"},
433+
{title: "Cloud", value: "cloud"},
434+
{title: "Shade", value: "shade"},
435+
{title: "Tungsten", value: "tungsten"},
436+
{title: "Fluorescent", value: "fluorescent"},
437+
{title: "Incandescent", value: "incandescent"},
438+
{title: "Flash", value: "flash"},
439+
{title: "Horizon", value: "horizon"},
440+
{title: "Greyworld", value: "greyworld"}]},
441+
"rpi0_sharpness": {title: "RPI Camera Sharpness",
442+
info: "Sharpness of RPI camera image. Range -100 to 100.",
443+
itemType: "range",
444+
from: -100,
445+
to: 100,
446+
unit: ""},
447+
"rpi0_contrast": {title: "RPI Camera Contrast",
448+
info: "Contrast of RPI camera image. Range -100 to 100.",
449+
itemType: "range",
450+
from: -100,
451+
to: 100,
452+
unit: ""},
453+
"rpi0_brightness": {title: "RPI Camera Brightness",
454+
info: "Brightness of RPI camera image. Range 0 to 100.",
455+
itemType: "range",
456+
from: 0,
457+
to: 100,
458+
unit: ""},
459+
"rpi0_saturation": {title: "RPI Camera Saturation",
460+
info: "Saturation of RPI camera image. Range -100 to 100.",
461+
itemType: "range",
462+
from: -100,
463+
to: 100,
464+
unit: ""},
465+
"rpi0_mirrormode": {title: "RPI Camera Mirror Mode",
466+
info: "Used to flip/mirror the RPI cameras",
467+
itemType: "choice",
468+
choiceValues: [{title: "Normal", value: "0"},
469+
{title: "Flip", value: "1"},
470+
{title: "Mirror", value: "2"},
471+
{title: "Flip and Mirror", value: "3"}]},
406472
})
407473

408474
property var radioSettingsMap: ({

0 commit comments

Comments
 (0)