simcodersdotcom / headshake

Source code of the HeadShake plugin for X-Plane
https://www.simcoders.com/headshake
GNU General Public License v3.0
39 stars 12 forks source link

Implemented taxi lookahead #9

Closed Althar93 closed 7 years ago

Althar93 commented 7 years ago

A first attempt at implementing #5

The taxi lookahead is kept separate to the ground roll as suggested in the original request.

The lookahead is derived from a blend of the rudder input & ground rotation rate in an attempt to orient the view towards the turn. To minimise the distractions that the lookahead would cause during the takeoff phase, the effect is set to fade out with increased ground speed (currently set to 20 knots which should work for most aircrafts).

I have ran a series of tests with both a set of Thrusmaster Rudder pedals as well as a regular twist-style joystick rudder control (X55 Hotas) for sensitivity/response. I experimented with the lookahead effect in isolation as well as with all other ground effects enabled on both GA planes & larger Heavy aircrafts.

The initial responses & max taxi speeds default values were set to what I considered to feel & interact nicely across a variety of aircraft types.

Suggestions for different default values are of course welcome ; general feedback would also be much appreciated.

Thanks

nico87 commented 7 years ago

Great job! The final effect is better than what I was expecting. I have very few considerations before merging the PR.

  1. I would lower the default rudder response at about 5 or 10.
  2. What do you think of adding a little bit of (configurable) forward head movement while turning? I usually tend to lean forward while turning before the Cessnas have the door strut right between your eyes!
  3. I had some complaints in the past about the settings window size. Maybe it's better to have two columns where we can put the "Look ahead effect", "Ground roll vibrations" and "Taxi lookahead" packed together. So, Look ahead effect and ground roll vibration on the same column on the left and "Taxi lookahead" on the right, taking the two rows of the other two effect. In this way we should be able to keep the current window size!
Althar93 commented 7 years ago

All of the suggestions/comments above sound reasonable. I will look into making those ammendments hopefully before the end of the weekend.

Just one question: when you say 'lean forward' do you mean leaning into the turn/lookahead direction (as if you were trying to stick your head outside) or did I misunderstand?

nico87 commented 7 years ago

Just one question: when you say 'lean forward' do you mean leaning into the turn/lookahead direction (as if you were trying to stick your head outside) or did I misunderstand?

I mean leaning toward the nose of the engine. Does not matter the direction. In this way, if you lean forward and turn your head, you can have a better view of the outside.

Althar93 commented 7 years ago

Thanks for clarifying.

I have just submitted some changes as recommended above, namely :

nico87 commented 7 years ago

Great job! I've merged this into master and I'm going to make a build of HS 1.6.

Please contact me at info[at]simcoders[dot]com.

Thank you!