f16 icon indicating copy to clipboard operation
f16 copied to clipboard

A/P STG SEL don't follow to active custom steerpoint

Open NikolaiVChr opened this issue 3 years ago • 5 comments

NikolaiVChr avatar Jan 05 '22 15:01 NikolaiVChr

Not sure how Josh's A/P find out what to navigate to. But the problem is it uses properties, while the custom steerpoint will be in Nasal.

If it was a Nasal A/P system, we could just have done:

if (steerpoints.getCurrentNumber() != 0) {
  var bearing = steerpoints.getCurrentDirection()[0];
  if (bearing != nil) {
      setAPHeading(bearing);
  }
}

NikolaiVChr avatar Jan 05 '22 15:01 NikolaiVChr

@Octal450 any suggestions?

NikolaiVChr avatar Jan 05 '22 17:01 NikolaiVChr

@NikolaiVChr Do you want to keep Route manager compatibility? We have 2 options here:

Option 1: Use your custom navigation, and if that is not set, then try route manager Option 2: Use only your custom navigation

Then in either case, just provide me with properties for the heading to fly (true or mag, I can do either) and whether or not a point is set, and I can update the A/P to use them.

Kind Regards, Josh

Octal450 avatar Jan 06 '22 20:01 Octal450

Hmnm, maybe use only my nasal code.

You can use the above code to get heading.

NikolaiVChr avatar Jan 06 '22 21:01 NikolaiVChr

OK.

Kind Regards, Josh

Octal450 avatar Jan 07 '22 14:01 Octal450

Fixed with 31333a17

NikolaiVChr avatar Dec 20 '22 23:12 NikolaiVChr