Profile image

Can you set a rotor to go to a target angle on deactivation using overhaul?

242 SpillySock  3.6 years ago

I am making a vtol craft that I want to be able to go to forward flight and in order to do that the rockets have to turn. I need to disable the mechanical rotors though so that the controls for vtol mode don't interfere. I can do it now but the issue is that I have to zero all input first which can be annoying.

Also is there a way to reassign control/rotational axis when an activation group is pressed?

I'd also like to know if there is a way to toggle activation groups with one button.

  • Log in to leave a comment
  • Profile image

    @PioThePioneer Scratch the invert rotational direction it's the same code lol. I'm actually starting to understand this thanks to you. I'm still not sure how to put code together though

    3.6 years ago
  • Profile image

    @PioThePioneer You're good I got it working. I think now I need to add to the code to be able to invert the rotators direction (which I don't know the code for)
    and set target angles for some hinges. In order to set the angle would it look like "Activate1 ? (Current angle value) : (new desired angle value)"?

    How do I put both pieces of code together as well? Can they be spliced together like this for example? "Activate1 ? Pitch : Roll (Activate1 ? (Current angle) : (Target angle))"

    How did you find all these commands btw?

    3.6 years ago
  • Profile image

    @PioThePioneer http://imgur.com/a/XbndP2K
    Sorry I still don't know how to structure the code. Is this anywhere close to correct?

    3.6 years ago
  • Profile image

    @PioThePioneer yes my apologies. And thank you again this was very helpful

    3.6 years ago
  • Profile image

    @PioThePioneer Thanks for the explanation at least I now know it's possible. Where do you actually put these commands in the overhaul interface? Would they go on the left or the right column? That's the part that's really confusing to me I just don't know where I need to put these commands.

    3.6 years ago