Profile image

Funky Trees

15 DrewPWinner  2.3 years ago

Hello fellow players, I need help with some programing please. I want my gyroscope to deactivate at a 60 degree climb through a full 90 degree climb all the way to an inverted 60 degree and activate otherwise. I would like it to activate on 5 so I could mix some other flight controls to activate on 5.

  • Log in to leave a comment
  • Profile image

    @TheFlightGuySP Thank you very much!!!!

    2.3 years ago
  • Profile image

    @V It works!!! Awesome thank you

    2.3 years ago
  • Profile image
    37.2k V

    Set activation group to (Activate5&PitchAngle<60)|(Activate5&PitchAngle>90)
    I have tested it, it does work

    2.3 years ago
  • Profile image

    You could try: Activate5=(1)&(PitchAngle>60 | PitchAngle<-60) ? 1 : 0
    However, I'm not sure if the gyroscope will accept this as an activation group (some parts don't accept expressions as activation groups).
    I also haven't tested this code, but if the gyroscope will accept expressions as activation groups, then the code should theoretically work.

    2.3 years ago