<!--
<rsl>
// Script generated: Wed Mar 05 2025 11:34:19 GMT-0330 (Newfoundland Standard Time)
// Rayfin App Version: 4.3.1.23-release
// Generated by the SubC Rayfin script generator 4.3.1.0 

recording.directorytemplate:AltitudeTriggerVideo //uMQ*8^o[d:1yl_%c@#.[
recording.filenametemplate:video-${yyyy}${MM}${dd}-${hh}${mm}${ss} //yRg/47IVR4-$GSgLrnb.
recording.encoder:H265 //4XaVg5$|9hy:6QtsvE^r
recording.preset:fhd30 //7!8URxI3~2|+W18fs`F;
recording.bitrate:25 //avZJE,`Aq[yu+Oo$eu0/
still.directorytemplate:AltitudeTriggerStills //z-o{q;xCz8]WC3rB3oD{
still.filenametemplate:still-${yyyy}${MM}${dd}-${hh}${mm}${ss} //T0U/O0M:6Am58]nFpI*f
when.clear //=m`jds`1;m2~E!r9#cA?
auxinput.setdevice:0,AquoreaMk3 //*f`tu!6%r-HT`.}pEqF1
auxinput.setdevice:1,TTLNMEASensor //NThSUI%e`7se]6cr,lnH
lens.focus.auto //#G0P#%iN_}iv?tEs)%zX
lens.focus.limit:0.1,10 //@Gv9:ZI)b6P;,vc6a~:e
exposure.auto //~BJ.O/{Re`f+m:]Q!`uq
Whencond (data.altitude < 5)
  if (not recording.isrecording)
    laser.on //2d@`)~^k.yt|R8.uKUkM
    led.lamp.brightness:100 //0^yW;3LZ5^V:)!,HfjQu
    still.take //*^Uci?E5973/}T)+(piW
    recording.start //XUGMWGq^~[$C+`oXBhJN
  endif
endwhencond
Whencond (data.altitude > 10)
  if (recording.isrecording)
    still.take //2T?e7UQ+#koZ8vocDJ5M
    recording.stop //WHD3*{ZrZi0Ddr;glJLv
    led.lamp.off //fa@Y:t$v*+@exeQUXRJb
    laser.off //K9NQk+Wzq[,,qyuB)^9N
  endif
endwhencond

</rsl>
-->
<xml xmlns="https://developers.google.com/blockly/xml"><block type="recording.directorytemplate_set" id="uMQ*8^o[d:1yl_%c@#.[" x="-337" y="-463"><field name="VALUE">AltitudeTriggerVideo</field><next><block type="recording.filenametemplate_set" id="yRg/47IVR4-$GSgLrnb."><field name="VALUE">video-${yyyy}${MM}${dd}-${hh}${mm}${ss}</field><next><block type="recording.encoder_set" id="4XaVg5$|9hy:6QtsvE^r"><field name="DROPDOWN">H265</field><next><block type="recording.preset_set" id="7!8URxI3~2|+W18fs`F;"><field name="DROPDOWN">fhd30</field><next><block type="recording.bitrate_set" id="avZJE,`Aq[yu+Oo$eu0/"><field name="VALUE">25</field><next><block type="still.directorytemplate_set" id="z-o{q;xCz8]WC3rB3oD{"><field name="VALUE">AltitudeTriggerStills</field><next><block type="still.filenametemplate_set" id="T0U/O0M:6Am58]nFpI*f"><field name="VALUE">still-${yyyy}${MM}${dd}-${hh}${mm}${ss}</field><next><block type="method_when.clear" id="=m`jds`1;m2~E!r9#cA?"><next><block type="method_auxinput.setdevice" id="*f`tu!6%r-HT`.}pEqF1"><value name="auxInput"><block type="number_value" id=")xyg^38@Y~JCv?qVlx2Z"><field name="VAL">0</field></block></value><value name="auxDevice"><block type="AquoreaMk3" id="fo@.rM:lB)Q8ts~TECo7"></block></value><next><block type="method_auxinput.setdevice" id="NThSUI%e`7se]6cr,lnH"><value name="auxInput"><block type="number_value" id="+*?#m]Cmb92r;(ub7%mK"><field name="VAL">1</field></block></value><value name="auxDevice"><block type="TTLNMEASensor" id="cQNC^IB;yE$2_*T_zuDc"></block></value><next><block type="method_lens.focus.auto" id="#G0P#%iN_}iv?tEs)%zX"><next><block type="method_lens.focus.limit" id="@Gv9:ZI)b6P;,vc6a~:e"><value name="farLimit"><block type="number_value" id="ckBzgKgGA92}JWl2%%n="><field name="VAL">0.1</field></block></value><value name="nearLimit"><block type="number_value" id=":dKR5A*Abji1!VeM+R0,"><field name="VAL">10</field></block></value><next><block type="method_exposure.auto" id="~BJ.O/{Re`f+m:]Q!`uq"><next><block type="subc_when" id="8$F)SfDGtDx]IUWtsC#7"><value name="WHEN0"><block type="subc_when_compare" id="s1$/-o+@!LPZy-/d~0Pu"><field name="OP">LT</field><value name="A"><block type="when_data.altitude_get" id="KQ?^yU/X03WUgJRvrXzM"></block></value><value name="B"><block type="when_number" id="!O*]nH(-gj{k%ixfjGi_"><field name="NUM">5</field></block></value></block></value><statement name="DO0"><block type="subc_controls_if" id="ydy.:xvL)gUdB,b}fFd|"><value name="IF0"><block type="subc_logic_negate" id="|gnO8g5Z!~;fi]crcXMY"><value name="BOOL"><block type="recording.isrecording_get" id="i:nUj??JpS~zcK{2].-;"></block></value></block></value><statement name="DO0"><block type="method_laser.on" id="2d@`)~^k.yt|R8.uKUkM"><next><block type="led.lamp.brightness_set" id="0^yW;3LZ5^V:)!,HfjQu"><field name="VALUE">100</field><next><block type="method_still.take" id="*^Uci?E5973/}T)+(piW"><next><block type="method_recording.start" id="XUGMWGq^~[$C+`oXBhJN"></block></next></block></next></block></next></block></statement></block></statement><next><block type="subc_when" id="sG$DJg{z[l(*(*zVW[$p"><value name="WHEN0"><block type="subc_when_compare" id=";5esI6{G1AHFY46T3R,h"><field name="OP">GT</field><value name="A"><block type="when_data.altitude_get" id="lZg:v,ihH!!Vt1;;Ftr4"></block></value><value name="B"><block type="when_number" id="cCmVLe@C@,Q1FIH/-a!B"><field name="NUM">10</field></block></value></block></value><statement name="DO0"><block type="subc_controls_if" id="Ei9F3%OIKP|OTN?@J+R_"><value name="IF0"><block type="recording.isrecording_get" id="We=)165xFW]:~@R@{zP+"></block></value><statement name="DO0"><block type="method_still.take" id="2T?e7UQ+#koZ8vocDJ5M"><next><block type="method_recording.stop" id="WHD3*{ZrZi0Ddr;glJLv"><next><block type="method_led.lamp.off" id="fa@Y:t$v*+@exeQUXRJb"><next><block type="method_laser.off" id="K9NQk+Wzq[,,qyuB)^9N"></block></next></block></next></block></next></block></statement></block></statement></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></xml>