Jump to content

Vehicle banking?


Paul Hexem
 Share

You are about to reply to a thread that has been inactive for 3497 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

I assume you know that neither of the bits of code you linked to is a complete script.  They are functions that set the vehicle parameters at the head of a script in which you have to provide all the control functions.  When you do that, the code you provided ought to work, as long as you haven't restricted rotation in any of the three directions (X, Y, and Z).  The banking parameters in it should make your airplane respond well.

Link to comment
Share on other sites

Make sure you are applying an angular motor around the roll axis to make use of the banking feature. Usually the X axis.

All it does is to make a rotation around the Yaw axis, when rolling. The vertical attractor timescale has a rather strong effect on how far it will bank. Stronger banking = longer vertical attractor timescale values.

Link to comment
Share on other sites


Rolig Loon wrote:

I assume you know that neither of the bits of code you linked to is a complete script.  They are functions that set the vehicle parameters at the head of a script in which you have to provide all the control functions.  When you do that, the code you provided ought to work, as long as you haven't restricted rotation in any of the three directions (X, Y, and Z).  The banking parameters in it should make your airplane respond well.

Yes. I pulled that section out, because I thought that's where the problem was. I haven't restricted anything and the vehicle "works" fine. It just won't bank.


arton Rotaru wrote:

Make sure you are applying an angular motor around the roll axis to make use of the banking feature. Usually the X axis.

All it does is to make a rotation around the Yaw axis, when rolling. The vertical attractor timescale has a rather strong effect on how far it will bank. Stronger banking = longer vertical attractor timescale values.

That could be what's going on. Currently my control inputs only change the angular.z axis, which presumably causes left/right turning.

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 3497 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...