Jump to content

Copilot Expansion Auto Step Climb For FSLABS A32X 1.0.0


About This File

Hi everyone,
 
We all know that FSlabs team is working on Step Climb function, and we all expect that but until then, I created a small custom expansion of the Copilot Lua Script from @Peter Pukhnoy in order to automatically step to higher level, especially if you are flying a red eye/long haul flight with the A321 and sleep next to the PC :-)
 
How it works :
  • This Auto Step Climb lua script periodically reads the REC MAX ALT in MCDU PROG Page of pilot monitoring MCDU every 45 minutes.
  • This reading only works in CRUISE Mode and between predefined Flight levels - by default between 29000 and 41000).
  • If at any point in flight, the cruise level is less than this *REC MAX ALT* 3000 feet which means we can execute the climb (+ 2000 feet) and still below the MAX ALT 1000 feet.
  • The ALT knob will be rotated to the right twice and will be pushed to execute the CLIMB (this ALT knob will also be switched to 1000 increment, in case it was left at 100).
 
How to Enable / Disable Auto Step Climb (ASC) ? 
  • To make life easier without having to modify values in the config file and restart the Copilot Module each time you want to enable/disable ASC, I decided ASC IS ONLY ENABLED IF the A/P button of Pilot Monitoring (PM) is engaged, the Pilot Monitoring side (left or right) can be set in options.ini file of Copilot (PM_seat value). 
  • For example, if you set "left" for PM value in options.ini, then this ASC only works if Autopilot 1 is engaged (virtually means you handle all the works to the P.M (left seat) and go to bed), and simply engage your Autopilot 2 when you are back to the control and want to disable it.
  • And yes, you can switch freely between AP1 and AP2 in flight without any problem.
  • Recommend to only engage P.M's Autopilot when you want to enable ASC.
 
Installation :
  • Download and install Copilot LUA SCRIPT 
  • Download *asc_custom_auto_step_climb.lua* file in the attachment and put it into FSUIPC\FSLabs Copilot\custom folder.
  • That's it!
Logs:
 
All the actions of Auto Step Climb are logged with specific time, you can find the details here : FSUIPC\FSLabs Copilot\custom\Copilot.log
[08:00:06] [info] [STEP CLIMB LOG] : <AUTO STEP CLIMB DISABLED> - REASON : A/P OF PILOT MONITORING IS NOT ENGAGED
[08:45:14] [info] [STEP CLIMB LOG] : <AUTO STEP CLIMB ENABLED> - STEP CLIMB EXECUTED FROM : 30954 TO 32954 - REC MAX ALT RECORDED : 34000
[09:30:16] [info] [STEP CLIMB LOG] : <AUTO STEP CLIMB ENABLED> - STEP CLIMB NOT POSSIBLE - CURRENT FL : 33015 / MAX FL : 34500

PM or comment me if you have any feedback or question or any idea to improve this small piece of code.

Happy "Step Climb" Guys! ^_^
 
  • Like 1
  • Thanks 6

×
×
  • Create New...