April 9, 20215 yr I used your excellent tip to get rid of "10-degree heading bug. I used the script you suggested and it worked great. Thanks for that. (A: AUTOPILOT HEADING LOCK DIR, Degrees) 1 + (> K: HEADING_BUG_SET) (A: AUTOPILOT HEADING LOCK DIR, Degrees) 0 == if {359} els {(A: AUTOPILOT HEADING LOCK DIR, Degrees) 1 -} (> K: HEADING_BUG_SET) My question now is if a similar script could be used to change the HSI course in 1 step instead of 10 as now. If possible, what would such a script look like? /thomas Thomas ( Sundsvall, ESNN, Sweden) MSFS 2024, Intel 9 9900K Oc 5 GHZ 16MB, Corsair Hydro H150i PRO RGB 360mm, ASUS GeForce RTX 2080 SUPER 8GB ROG, 2 Corsair Force M2 MP600 1TB+500Gb, ASUS ROG MAXIMUS XI HERO Z390 MB, Corsair 32GB (2x16GB) DDR4 3200Mhz CL16, Fractal Design Define S2 Vision, Win 10 Home, BenQ 32" PD3200U 4K IPS monitor A2A Comanche, WB Sim Cessna 152
April 9, 20215 yr Commercial Member Hello Thomas, those scripts were too complicated. They can be shortened to this (dnor makes sure that the value stays in the 0-360 degree range): (A:AUTOPILOT HEADING LOCK DIR, Degrees) 1 + dnor (>K:HEADING_BUG_SET) (A:AUTOPILOT HEADING LOCK DIR, Degrees) 1 - dnor (>K:HEADING_BUG_SET) and for the course: (A:NAV1 OBS, Degrees) 1 + dnor (>K:VOR1_SET) (A:NAV1 OBS, Degrees) 1 - dnor (>K:VOR1_SET) I hope these are correct. When in doubt, take a look into the Event-IDs and Simulator Variables of the SDK documentation, it's all in there. Any SDK doc will do for these basic events, even the one from FSX. Edited April 9, 20215 yr by Lorby_SI LORBY-SI
April 10, 20215 yr Author Thank you, works without problems. /Thomas Thomas ( Sundsvall, ESNN, Sweden) MSFS 2024, Intel 9 9900K Oc 5 GHZ 16MB, Corsair Hydro H150i PRO RGB 360mm, ASUS GeForce RTX 2080 SUPER 8GB ROG, 2 Corsair Force M2 MP600 1TB+500Gb, ASUS ROG MAXIMUS XI HERO Z390 MB, Corsair 32GB (2x16GB) DDR4 3200Mhz CL16, Fractal Design Define S2 Vision, Win 10 Home, BenQ 32" PD3200U 4K IPS monitor A2A Comanche, WB Sim Cessna 152
Archived
This topic is now archived and is closed to further replies.