-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue 1330 #1332
Issue 1330 #1332
Conversation
Correct for the inverted directions. Trim wheel: In Models/c172p.xml, lines 5238 - 5247
The initial @wlbragg, can you confirm that I did it the right way? In this case, displaying three decimal digits (instead of two) on the hover indication would be better too.
(with %3.3f instead of %3.2f) |
In this case, it was like that before. I had never noticed it because I use my joystick for trim control. And the trim wheel is not easily visible. I give my opinion but I'd prefer that you and @wlbragg are convinced if you do it. Can you try stabilizing in flight? |
I agree -- also throttle; setting by 5% seems a bit fast. |
I like it right where it's at. It seems OK to me. I defiantly wouldn't want to go coarser than it is now but i don't seem to have a hard time tuning it where it is at. |
@wlbragg I have to say I agree with @dany93 on this one. Our current value is
@legoboyvdlp I tested it at 2% and it feels much better. Much better control over mixture and throttle and it still takes a reasonable time to go from open to full. I can push these changes for you all to test if we are in the same boat. |
@wlbragg wrote
I have in mind that I rarely have to change the elevator trim by more than 0.1 or 0.2 (0.3 at final approach). Which does not take that long, and is to be made progressively. With my JS trim at 0.001 step, I can stabilize horizontal flight during more than one or two minutes with no JS intervention. |
For me, we can have the trim much much finer as Dany is suggesting, even at
What aileron trim? I thought our aircraft did not have an option for that.
We might want to make that one finer too. Also, I do not understand what you mean by hot legend. |
@gilbertohasnofb wrote
Correct on our aircraft. I gave you the aileron trim to help if you wished to try this way. Accessible by setting it in the properties. For a given rpm and airspeed (close to the one I gave), you even do not need changing the aileron trim value. Also, the possibility to loosen the JS controls and have a stable trajectory is particularly interesting for accurately doing tests such as drag measurements. |
I'm OK with whatever you all decide. .002 would be my choice over .001. My thoughts on @dany93 argument of trimming only .1 to .3 during a flight kind of supports the value being .01 and not .001. Theoretically wouldn't it take 10 turns or 10 to 1 to turn from .1 to .2 at .01, but 100 turns at .001? With a matching "step" setting of course. That is what I feel on my mouse when the setting is at .001. Are you all using the mouse for this, except @dany93? 100 turn to get a 1% trim is excessive.
Meaning the "hot" spot is the knob and it appears to scroll off the mouse when turning the mouse wheel and then wont scroll anymore without moving the mouse back over the knob. So if you make an invisible hot spot (that's what I really meant), the size of the texture mesh for the entire trim graphic or close to it. Not a must I don't use it that much and it's not that hard to use. I'm not usually trimming the rudder but maybe once and that would be at a low workload time where I can afford some attention. |
After reviewing it again and using it to trim the aircraft I am OK with .001 or .002. It is actually way better. The first time I was in a hurry and it appeared it was taking way to long to move it to where it was effecting the aircraft. But from a "sane" starting trim it is actually a fine adjustment you need and being coarse just makes it harder ti get the trim correct. |
@wlbragg wrote
(if I understand well what you wrote...) The best and easiest is to rotate the scroll-wheel and observe the trim values in the sim. |
@wlbragg wrote
I almost never use the rudder trim setting. |
Right, I wasn't trying that hard to see the relationships, turns, notches, etc., I was more generalizing. I think we're on the same page. I'm good with the changes as is. My bottom line is I can turn the wheel starting at a "sane" beginning value and get it trimmed without having to excessively take my attention away from flying. I did think of a really nice addition we can make in time. I really hate having to change view to set any setting. The options are a quick key (I don't know if trim has any). I of course can use my JS, but for those on mouse I want to make a GUI popup like the Shuttle uses for many things (canvas) with the actual animated graphical mouse wheel for trimming so you don't have to change view at all yet it will feel like your actually doing it same as looking down at it because you see the graphical visualization of it in a popup. |
Ok, so I pushed my changes, please see what you all think. This is what I did:
@wlbragg I see what you mean about the hotspot now, and that is a good idea, but that would require some 3D modelling. If you want to do it, then we should add a hot spot behind the whole rudder trim, not only a cube at the centre, since users can still try to scroll above the handle. But I am fine with how it is as well and we can tackle this in the future at some point. |
@wlbragg wrote
Seems a nice idea. But one still has to see the hot spot to be clicked (e.g. the trim wheel) to click on it. Not easy unless with a large zoom angle or a kind of temporarily zooming. |
@gilbertohasnofb Nice work, which has gone farther than you thought. Thank you. |
I would use a quiick key to open it. |
@dany93 Thanks for testing!
This is enabled in the C172P > Aircraft Menu dialogue. @wlbragg When you have a chance, would you check the modifications again just so we are sure everyone is happy with the results before merging? Otherwise this is ready to be merged |
Rudder trim:
In reality, the rudder trim acts by changing the "neutral" position of the rudder (thanks to the airflow on the rudder-trim tab) when there is no action on the yoke. At the end, the yawing moment is always done by the rudder position (slightly deflected here). Not some other extra "thing". |
We definitely need to change it then, I don't recall who did the code I know I did the modeling and @gilbertohasnofb did the textures. I may have done the code as well and didn't understand the FDM properly. |
In the FDM, To make it simple, all that the lever has to do is changing At first view, it only should remain
(see the Setting 0.13 to the rudder trim should have the same effect as adding 0.13 to the rudder control. |
All looks good here 👍 |
@dany93 Ok, I found three entries where |
@wlbragg controls/flight/rudder-trim @gilbertohasnofb , @wlbragg
Despite these deletions,
(Probably not exhaustive....) |
No Worries!
Would most people more than likely have to adjust the knob then at startup? Or would it be best to have the knob position match the .02 at start up? If .02 is a good trim I would feel funny leaving the plane out of trim without some kind of notice, although we don't do that with the elevator trim. The elevator trim is expected to be change thought in most every flight. |
@wlbragg @dany93 could you guys take a look at this and push fixes into this branch? I think I know less than both of you about the rudder trim issue.
The state of the rudder trim should be saved if the option of saving states is on. The idea is that the trim tab will be left in the same position as the last pilot, and it's part of the realism to check for that. But In the case of the rudder trim, we need to reset it to |
OR
I think you meant .02? Yeah, I got that, so you think it is OK to set it to .02 when rudder trim is disabled and always back to 0 when rudder trim is enabled? If so then I wonder if we need a separate property for the adjustable rudder trim so it can have its own persistence separate from the auto trim. Then it would work like thi... Enable manual trim and use its isolated property so it can be persistent and it will be whatever that last value was set at. The above is settings are on the fly. Then we have the "on startup" and of course auto trim will always be at .02. These are all the options we have, what do we want? |
Yes, if possible (we are on the fly). Or (in fact), the value in c172p-set.xml. Otherwise, it will be set at next startup.
Uselessly complicated. If one clicks to enable the manual trim, it can be set to 0. This is a new configuration.
Yes
No. It can (should) be set with the trim lever. Otherwise, complicated because you would have to read the c172p-set value, which is an approximate compromise, not that important. And useless for manual-trim.
Yes.
Yes Yes! Or the value in c172p-set.xml
If no too complicated, the best would be persistent if the manual option is kept from one session to the next. I noticed that, since my last proposed cleaning of files (or maybe not due to it), disabling the rudder trim (i.e. changing from manual to disabled = auto in flight) resets it to 0. Which is perfectly acceptable because it is only for the current session. Next start with "disabled" (= auto trim) will be with 0.02 (or the value in c172p-set.xml). |
@wlbragg wrote:
For what it's worth, kind of template for the principles...
In c172p.nas This way, the FDM is unchanged and as usual. Also, the pre-set value in c172p-set.xml is easy to understand. |
@dany93 would you like to push the necessary modifications to the rudder trim so that we can merge this? |
I have nothing to push. |
@wlbragg would you like to work on the rudder trim feature on this PR? |
Yeah, I'll finish this up. I have my hands full at the moment with out of town guests, but will try to squeeze it out in the next 5-7 days, if that is OK? |
Absolutely, there is no rush. Hope you are having a great time with your guests! |
I wasn't understanding closely what the changes were here. But I understand we basically removed rudder-trim-knob as the controlling property for this. I'm trying to finish these last few PR up. You posted
I did a find-in-files search and below are the remaining uses of the "rudder-trim-knob" property. The setting of the "rudder-trim-knob" property to 0 in the dialog should be removed as well? Actually it will be replaced by the proper trim property which is what now? Is is simple controls/flight/rudder-trim?
|
I don't think this is anything. |
I already removed the other code you suggested above and changed the tool tip string formatting
but haven't pushed it yet. |
Marked for deletion
In reality, I think this will change to the rudder trim persistent property for the manual trim.
I will finish all this up as well and this should be all to close this issue up. |
@gilbertohasnofb @dany93 |
I think I figured out how the persistence of the rudder trim will work. |
OK, I was able to fix this in the animation. A couple more questions about it however.
Choices for (2) are... |
OK I think this one is done. I am happy with the persistence logic. It is as follows... Please verify before merging...
|
I think the rudder trim option should be persistent between sessions despite the switches save state, since that's an aircraft option similar to having the GPS or bush wheels which, I believe, persist between sessions despite the save state option (which is correct). If that option is ON, the rudder trim value should be persistent, otherwise it should go back at zero. Also, whenever the rudder trim option is removed, it's value should also be reset (since the user won't have the trim to change it back). What do you think? Edit: I see this is exactly what you wrote, so it should all be good. I will test this and merge it now. |
@wlbragg it all works exactly as it should, thanks for this |
Thanks @gilbertohasnofb ! |
Closes #1330
The idea behind this PR is: