Skip to content

Commit

Permalink
Embed Sony ILCE-7RM4 camera definition
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasVautherin committed Mar 16, 2021
1 parent 5e161d1 commit 52425bf
Show file tree
Hide file tree
Showing 5 changed files with 2,238 additions and 1 deletion.
354 changes: 354 additions & 0 deletions src/plugins/camera/camera_definition_files/ILCE7RM4.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,354 @@
<?xml version="1.0" encoding="UTF-8" ?>
<mavlinkcamera>
<definition version="17">
<model>ILCE-7RM4</model>
<vendor>Sony</vendor>
</definition>
<parameters>
<!-- control = 0 tells us this should not create an automatic UI control -->
<parameter name="CAM_MODE" type="uint8" default="1" control="0">
<description>Camera Mode</description>
<!-- This tells us when this parameter changes, these parameters must be updated (requested)-->
<updates>
<update>CAM_SHUTTER</update>
<update>CAM_APERTURE</update>
<update>CAM_ISO</update>
<update>CAM_FOCUSMODE</update>
</updates>
<options>
<option name="Photo" value="0">
<!-- This tells us when in Photo Mode, the following are the valid options for CAM_EXPMODE -->
<parameterranges>
<parameterrange parameter="CAM_EXPMODE">
<roption name="Manual" value="0" />
<roption name="Program Auto" value="11" />
<roption name="Aperture Priority" value="12" />
<roption name="Shutter Priority" value="13" />
</parameterrange>
</parameterranges>
<exclusions>
<exclude>CAM_MOVFORM</exclude>
<exclude>CAM_MOVQUAL</exclude>
</exclusions>
</option>
<option name="Video" value="1">
<!-- Converselly, the following are the valid options for CAM_EXPMODE when in Video mode -->
<parameterranges>
<parameterrange parameter="CAM_EXPMODE">
<roption name="Program Auto" value="14" />
<roption name="Aperture Priority" value="15" />
<roption name="Shutter Priority" value="16" />
</parameterrange>
</parameterranges>
<exclusions>
<exclude>CAM_IMGSIZE</exclude>
<exclude>CAM_FOCUSMODE</exclude>
</exclusions>
</option>
</options>
</parameter>
<parameter name="CAM_FOCUSMODE" type="uint8" default="0">
<description>Focus Mode</description>
<options>
<option name="Infinity" value="0" />
<option name="Auto" value="1" />
</options>
</parameter>
<parameter name="CAM_EXPMODE" type="uint8" default="0">
<description>Exposure Mode</description>
<options default="0">
<option name="Manual" value="0">
<exclusions>
<exclude>CAM_EV</exclude>
</exclusions>
</option>
<option name="Program Auto" value="11">
<exclusions>
<exclude>CAM_SHUTTER</exclude>
<exclude>CAM_APERTURE</exclude>
</exclusions>
</option>
<option name="Aperture Priority" value="12">
<exclusions>
<exclude>CAM_SHUTTER</exclude>
</exclusions>
</option>
<option name="Shutter Priority" value="13">
<exclusions>
<exclude>CAM_APERTURE</exclude>
</exclusions>
</option>
<option name="Program Auto" value="14">
<exclusions>
<exclude>CAM_SHUTTER</exclude>
<exclude>CAM_APERTURE</exclude>
</exclusions>
</option>
<option name="Aperture Priority" value="15">
<exclusions>
<exclude>CAM_SHUTTER</exclude>
</exclusions>
</option>
<option name="Shutter Priority" value="16">
<exclusions>
<exclude>CAM_APERTURE</exclude>
</exclusions>
</option>
</options>
</parameter>
<parameter name="CAM_WBMODE" type="uint8" default="0">
<description>White Balance</description>
<options>
<option name="Auto" value="0" />
<option name="Daylight" value="1" />
<option name="Incandescent" value="2" />
<option name="Flash" value="3" />
<option name="Fluor Warm White (-1)" value="4" />
<option name="Fluor Cool White (0)" value="5" />
<option name="Fluor Day White (+1)" value="6" />
<option name="Fluor Daylight (+2)" value="7" />
<option name="Cloudy" value="8" />
<option name="Shade" value="9" />
<option name="Color Temp./Filter" value="10" />
<option name="Custom 1" value="11" />
<option name="Custom 2" value="12" />
<option name="Custom 3" value="13" />
<option name="Underwater Auto" value="14" />
<!-- We don't yet have a way to have conditions for exclusions.
A manual color temperature value would only be enabled if
this option is selected.
<option name="Manual" value="15" />
-->
</options>
</parameter>
<parameter name="CAM_EV" type="uint8" default="15">
<description>Exposure Compensation</description>
<options>
<option name="-5.0" value="0" />
<option name="-4.7" value="1" />
<option name="-4.3" value="2" />
<option name="-4.0" value="3" />
<option name="-3.7" value="4" />
<option name="-3.3" value="5" />
<option name="-3.0" value="6" />
<option name="-2.7" value="7" />
<option name="-2.3" value="8" />
<option name="-2.0" value="9" />
<option name="-1.7" value="10" />
<option name="-1.3" value="11" />
<option name="-1.0" value="12" />
<option name="-0.7" value="13" />
<option name="-0.3" value="14" />
<option name="0" value="15" />
<option name="+0.3" value="16" />
<option name="+0.7" value="17" />
<option name="+1.0" value="18" />
<option name="+1.3" value="19" />
<option name="+1.7" value="20" />
<option name="+2.0" value="21" />
<option name="+2.3" value="22" />
<option name="+2.7" value="23" />
<option name="+3.0" value="24" />
<option name="+3.3" value="25" />
<option name="+3.7" value="26" />
<option name="+4.0" value="27" />
<option name="+4.3" value="28" />
<option name="+4.7" value="29" />
<option name="+5.0" value="30" />
</options>
</parameter>
<parameter name="CAM_ISO" type="uint8" default="0">
<description>ISO</description>
<options>
<option name="Auto" value="0" />
<option name="64" value="1" />
<option name="80" value="2" />
<option name="100" value="3" />
<option name="125" value="4" />
<option name="160" value="5" />
<option name="200" value="6" />
<option name="250" value="7" />
<option name="320" value="8" />
<option name="400" value="9" />
<option name="500" value="10" />
<option name="640" value="11" />
<option name="800" value="12" />
<option name="1000" value="13" />
<option name="1250" value="14" />
<option name="1600" value="15" />
<option name="2000" value="16" />
<option name="2500" value="17" />
<option name="3200" value="18" />
<option name="4000" value="19" />
<option name="5000" value="20" />
<option name="6400" value="21" />
<option name="8000" value="22" />
<option name="10000" value="23" />
<option name="12800" value="24" />
<option name="16000" value="25" />
<option name="20000" value="26" />
<option name="25600" value="27" />
<option name="32000" value="28" />
<option name="40000" value="29" />
<option name="51200" value="30" />
<option name="64000" value="31" />
<option name="80000" value="32" />
<option name="102400" value="33" />
</options>
</parameter>
<parameter name="CAM_SHUTTER" type="uint8" default="0">
<description>Shutter Speed</description>
<options>
<option name="30&quot;" value="0" />
<option name="25&quot;" value="1" />
<option name="20&quot;" value="2" />
<option name="15&quot;" value="3" />
<option name="13&quot;" value="4" />
<option name="10&quot;" value="5" />
<option name="8&quot;" value="6" />
<option name="6&quot;" value="7" />
<option name="5&quot;" value="8" />
<option name="4&quot;" value="9" />
<option name="3.2&quot;" value="10" />
<option name="2.5&quot;" value="11" />
<option name="2&quot;" value="12" />
<option name="1.6&quot;" value="13" />
<option name="1.3&quot;" value="14" />
<option name="1&quot;" value="15" />
<option name="0.8&quot;" value="16" />
<option name="0.6&quot;" value="17" />
<option name="0.5&quot;" value="18" />
<option name="0.4&quot;" value="19" />
<option name="1/3" value="20" />
<option name="1/4" value="21" />
<option name="1/5" value="22" />
<option name="1/6" value="23" />
<option name="1/8" value="24" />
<option name="1/10" value="25" />
<option name="1/13" value="26" />
<option name="1/15" value="27" />
<option name="1/20" value="28" />
<option name="1/25" value="29" />
<option name="1/30" value="30" />
<option name="1/40" value="31" />
<option name="1/50" value="32" />
<option name="1/60" value="33" />
<option name="1/80" value="34" />
<option name="1/100" value="35" />
<option name="1/125" value="36" />
<option name="1/160" value="37" />
<option name="1/200" value="38" />
<option name="1/250" value="39" />
<option name="1/320" value="40" />
<option name="1/400" value="41" />
<option name="1/500" value="42" />
<option name="1/640" value="43" />
<option name="1/800" value="44" />
<option name="1/1000" value="45" />
<option name="1/1250" value="46" />
<option name="1/1600" value="47" />
<option name="1/2000" value="48" />
<option name="1/2500" value="49" />
<option name="1/3200" value="50" />
<option name="1/4000" value="51" />
<option name="1/5000" value="52" />
<option name="1/6400" value="53" />
<option name="1/8000" value="54" />
</options>
</parameter>
<parameter name="CAM_APERTURE" type="uint8" default="0">
<description>Aperture</description>
<options>
<option name="f/2.8" value="0" />
<option name="f/3.2" value="1" />
<option name="f/3.5" value="2" />
<option name="f/4" value="3" />
<option name="f/4.5" value="4" />
<option name="f/5" value="5" />
<option name="f/5.6" value="6" />
<option name="f/6.3" value="7" />
<option name="f/7.1" value="8" />
<option name="f/8" value="9" />
<option name="f/16" value="10" />
</options>
</parameter>
<parameter name="CAM_MOVFORM" type="uint8" default="8">
<description>Movie Format</description>
<options>
<option name="XAVC S HD" value="9">
<parameterranges>
<parameterrange parameter="CAM_MOVQUAL">
<roption name="50p 50M" value="4" />
<roption name="50p 25M" value="25" />
<roption name="25p 50M" value="5" />
<roption name="25p 16M" value="27" />
<roption name="100p 100M" value="29" />
<roption name="100p 60M" value="31" />
</parameterrange>
</parameterranges>
</option>
<option name="XAVC S 4K" value="8">
<parameterranges>
<parameterrange parameter="CAM_MOVQUAL">
<roption name="25p 60M" value="36" />
<roption name="25p 100M" value="33" />
</parameterrange>
</parameterranges>
</option>
<option name="AVCHD" value="3">
<parameterranges>
<parameterrange parameter="CAM_MOVQUAL">
<roption name="50i 17M (FH)" value="9" />
<roption name="50i 24M (FX)" value="7" />
</parameterrange>
</parameterranges>
</option>
</options>
</parameter>
<parameter name="CAM_MOVQUAL" type="uint16" default="21">
<description>Movie Quality</description>
<options>
<option name="50p 50M" value="4" />
<option name="50p 25M" value="25" />
<option name="25p 50M" value="5" />
<option name="25p 16M" value="27" />
<option name="100p 100M" value="29" />
<option name="100p 60M" value="31" />
<option name="25p 60M" value="24" />
<option name="25p 100M" value="21" />
<option name="50i 17M (FH)" value="9" />
<option name="50i 24M (FX)" value="7" />
</options>
</parameter>
<parameter name="CAM_IMGDEST" type="uint8" default="0">
<description>Image store</description>
<options>
<option name="Camera" value="0" />
<option name="Computer" value="1" />
<option name="Both" value="2" />
</options>
</parameter>
<parameter name="CAM_IMGSIZE" type="uint8" default="0">
<description>Image Size</description>
<options>
<option name="Large" value="0" />
<option name="Medium" value="1" />
<option name="Small" value="2" />
</options>
</parameter>
<parameter name="CAM_BITRATE" type="uint8" default="25">
<description>Video Bit Rate</description>
<options>
<option name="100 kbps" value="1" />
<option name="500 kbps" value="5" />
<option name="1000 kbps" value="10" />
<option name="1500 kbps" value="15" />
<option name="2000 kbps" value="20" />
<option name="2500 kbps" value="25" />
<option name="3000 kbps" value="30" />
<option name="5000 kbps" value="50" />
<option name="8000 kbps" value="80" />
</options>
</parameter>
</parameters>
</mavlinkcamera>
Loading

0 comments on commit 52425bf

Please sign in to comment.