Speed Control

14 Jun 2015 14:10 - 14 Jun 2015 14:13 #24329 by Warty
Speed Control was created by Warty
I noticed on yesterday's flight night video that Stuart was using the autopilot dialogue to do speed changes. Impressed as I am that someone is capable of doing this whilst flying, it's not something I'm keen on trying. Especially as my mouse is my main flying control. The default keyboard description for the '9' key is "Increase throttle or autopilot autothrottle", but this doesn't work for me with changing autopilot settings. So the way I do it, is to make it adjustable from the keyboard like this:
 <key n="57">
  <name>9</name>
  <desc>Increase throttle or autopilot autothrottle</desc>
  <repeatable type="bool">true</repeatable>
  <binding>
  <command>nasal</command>
   <script>
   if (getprop("/autopilot/locks/speed") == "speed-with-throttle"){
     setprop("/autopilot/settings/target-speed-kt", 
       getprop("/autopilot/settings/target-speed-kt") + 10);
     }
    else{controls.incThrottle(0.01, 1.0);}     
   </script>
  </binding>
  
  <mod-shift>
   <desc>Look front right</desc>
   <binding>
    <command>property-assign</command>
    <property>/sim/current-view/goal-heading-offset-deg</property>
    <property>/sim/view/config/front-right-direction-deg</property>
   </binding>
  </mod-shift>
 </key>

 <key n="51">
  <name>3</name>
  <desc>Decrease throttle or autopilot autothrottle</desc>
  <repeatable type="bool">true</repeatable>
  <binding>
   <command>nasal</command>
      <script>
   if (getprop("/autopilot/locks/speed") == "speed-with-throttle"){
     setprop("/autopilot/settings/target-speed-kt", 
       getprop("/autopilot/settings/target-speed-kt") - 10);
     }
    else{controls.incThrottle(-0.01, -1.0);}     
   </script>
  </binding>
  <mod-shift>
   <desc>Look back right</desc>
   <binding>
    <command>property-assign</command>
    <property>/sim/current-view/goal-heading-offset-deg</property>
    <property>/sim/view/config/back-right-direction-deg</property>
   </binding>
  </mod-shift>
 </key>
and also adjustable by the mouse wheel, in the
  <mode n="1">
   <cursor>crosshair</cursor>
section of mice.xml, like this:
   <button n="3">
    <binding>
   <command>nasal</command>
   <script>
   if (getprop("/autopilot/locks/speed") == "speed-with-throttle"){
     setprop("/autopilot/settings/target-speed-kt", 
       getprop("/autopilot/settings/target-speed-kt") - 10);
     }
    else{controls.incThrottle(-0.01, 1.0);}    
   </script>
  </binding>
   </button>  

   <button n="4">
  <binding>
   <command>nasal</command>
   <script>
   if (getprop("/autopilot/locks/speed") == "speed-with-throttle"){
     setprop("/autopilot/settings/target-speed-kt", 
       getprop("/autopilot/settings/target-speed-kt") + 10);
     }
    else{controls.incThrottle(0.01, -1.0);}
   </script>
  </binding>
   </button>
And with Target IAS shown in the top left of the hud with:
<!--speed hold-->
<label>
<x>-90</x>
<y>50</y>
<width>60</width>
<height>6</height>
<format>IAS %3dkt</format>
<halign>left</halign>
<box>true</box>
<input>
<property>/autopilot/settings/target-speed-kt</property>
</input>
<condition>
<equals>
<property>/autopilot/locks/speed</property>
<value>speed-with-throttle</value>
</equals>
</condition>
</label>
The x and y may need to be adjusted depending the clipping of your hud and other stuff you are displaying on it.

This way, I can change speed with taking my hand of my steering or my eyes off the road.

Mac 10.14.1 Mojave, FG 2020.4.0

Please Log in or Create an account to join the conversation.

14 Jun 2015 14:12 #24330 by StuartC
Replied by StuartC on topic Speed Control
I was flying with 1 finger on the top of my control stick as well, left handed as I was needing my right to control the view for the camera.

Please Log in or Create an account to join the conversation.

14 Jun 2015 14:18 #24331 by Warty
Replied by Warty on topic Speed Control

I was flying with 1 finger on the top of my control stick as well, left handed as I was needing my right to control the view for the camera.

Sorry, that wouldn't work for me: need my left hand for drinking & smoking :cheer:

Mac 10.14.1 Mojave, FG 2020.4.0

Please Log in or Create an account to join the conversation.

14 Jun 2015 15:40 #24335 by Algernon
Replied by Algernon on topic Speed Control

Sorry, that wouldn't work for me: need my left hand for drinking & smoking :cheer:

Seconded :D

Please Log in or Create an account to join the conversation.

14 Jun 2015 17:10 #24337 by J Maverick 16
Replied by J Maverick 16 on topic Speed Control
How many people are smoking here?! :woohoo:
Mav

Breakin' the sound barrier every day!
Oh God, that's EGOD!

FG 2020.3.1 - iMac 27" (Mid 2010) w/ macOS 10.12.6 - Thrustmaster FCS Flight Pack + MFD Cougar

Please Log in or Create an account to join the conversation.

14 Jun 2015 17:35 - 14 Jun 2015 17:36 #24338 by Warty
Replied by Warty on topic Speed Control

How many people are smoking here?! :woohoo:
Mav

That's one of the nice things about FlightGear - you can simulate the old days. I learnt to fly in a Cessna in EGPT and they had a cigar lighter, just like in a car. It was part of the take-off checks to push it in - so you could have a cig on the way round the circuit. It even had an ashtray!

Mac 10.14.1 Mojave, FG 2020.4.0

Please Log in or Create an account to join the conversation.

14 Jun 2015 18:32 #24340 by Algernon
Replied by Algernon on topic Speed Control
IIRC, there used to be a rule in the RAF that you could only smoke in the cockpit (!!) and I heard several stories about the Victor when researching my FG Victor project. One was that a very close call of some kind resulted in the navigator taking up smoking, getting through a packet of 20 to calm his nerves afterwards, and it took him another ten years to quit. Another was a bit scarier still - the autopilot tripped out after it had been increasing down elevator input for some time and the aircraft suddenly nosedived. The accelerometer registered both pos and neg G at well above the aircraft's stated tolerances, and during one negative-G osciallation, a number of items including a load of dirt and ancient fag butts came floating up out of the cracks in the floor and spread themselves all over the panels.

Please Log in or Create an account to join the conversation.

Time to create page: 0.152 seconds
Powered by Kunena Forum

Latest Forum Posts

PM Notifications

You are not logged in.

PM Mailbox

You are not logged in.