#4420733 - 05/14/18 04:01 PM
Re: EECH Hover Hold & Alt Hold Mods
[Re: Javelin]
|
Joined: Apr 2018
Posts: 300
Javelin
Member
|
Member
Joined: Apr 2018
Posts: 300
Idaho Falls, Idaho USA
|
Spent some time digging through the dynamics code, overall it doesn't look too bad. All the needed bits are in there. The implementation of the tail boom drag force is odd, it isn't a calculated aerodynamic force, it's an artificial restoring force that is either on or off. That can be upgraded once I figure things out. I also noticed a couple of minor errors, the gravity force is applied at the rotor hub, not at the center of mass like it should be. The weight of the helicopter tends to pull the helo back to vertical over time, proportional to the angle. They've added in two artificial restoring forces that serve a similar function, but the artificial forces are not proportional to the moment arm like a weight force would be. I need to look at the math more closely to see how hard it would be to fix this. The aerodynamic drag force has the same problem, it acts at the rotor hub, not the center of the helo body like it should.
I turned on the diagnostic plot of the forces on the helos in the ini file and watched the system react while flying. I noticed that the aerodynamic forces are not implemented correctly on all of the helo types, some of the user-created models need some adjustments to the dynamics. Some of the physical constants need to be updated and some of the forces need to be turned on or off so they are not based on an incorrect dynamics model. Then the different types of helicopters will have a different feel when you fly them and behave correctly.
I didn't see any evidence that the rear horizontal stabilizer is modeled, but that isn't a very significant issue. The main rotor down wash flow is so complex on a helo it's hard to really say what the stabilizer will do under all flight conditions. The Comanche is different, with the stabilizer way up high out of the down wash, it could be modeled pretty easily on the Comanche. When it's located in the middle of the tail boom it's a difficult call. Mainly it's there to help level the helo out when it's moving forwards at a high speed. Leaving it out really isn't a big issue. Some helos have a horizontal stabilizer and some don't, so even the design engineers can't decide which is better.
I have Watcom working, that wasn't difficult at all.
|
|
#4421123 - 05/16/18 11:02 PM
Re: EECH Hover Hold & Alt Hold Mods
[Re: Javelin]
|
Joined: Apr 2018
Posts: 300
Javelin
Member
|
Member
Joined: Apr 2018
Posts: 300
Idaho Falls, Idaho USA
|
OK, I went through all of the Advanced Dynamics settings files, pulled the numbers into a spreadsheet, and gathered up all the real numbers I could find for comparison to actual values. A lot of the dynamics values for a large number of the helos are the default numbers from the Apache which is why things don't feel quite right. A large heavy chopper shouldn't maneuver just like a nimble Apache. Some efforts were made by you guys to adjust some of these values, but I think we can improve that by quite a bit. The number of rotor blades has never been used, the distance to the tail rotor has never been updated, the default maximum main rotor rpm may be incorrectly set, things like that can be updated. I still need to dig into the dynamics equations to make sure i understand how all of the numbers are being used, and check the units for proper use. For example, all of the Power values are in horsepower, where all of the rest of the numbers are metric. I need to check and make sure the developers really meant to use hp and not kw's.
After some additional digging I've come to the conclusion that the developers really did intend on using hp for power levels, not kw's. Updating all of the numbers (especially the Inertial values) in the setup files is about as far as I can to go in correcting the physics, without the developer's raw equations it's pretty difficult to go much further than that. I'm still going to attempt to fix the location of the gravity force, though, and maybe a drag force or two.
Last edited by Javelin; 05/17/18 05:43 AM.
|
|
#4421946 - 05/21/18 04:14 PM
Re: EECH Hover Hold & Alt Hold Mods
[Re: Javelin]
|
Joined: Jan 2016
Posts: 486
XIII
Member
|
Member
Joined: Jan 2016
Posts: 486
|
|
|
#4421954 - 05/21/18 04:48 PM
Re: EECH Hover Hold & Alt Hold Mods
[Re: Javelin]
|
Joined: Apr 2018
Posts: 300
Javelin
Member
|
Member
Joined: Apr 2018
Posts: 300
Idaho Falls, Idaho USA
|
The only time you would notice the deviations would be hovering next to the ground, at altitude you won't even notice it. The chase camera bobs around a bit already, though. Right now I have it over damped, there is a slight bit of drift, but it locks in pretty tight.
Yes, I'm getting familiar with the code, the dynamics portion anyway. The developer has done some screwy things, but I'm figuring it out. The hardest part so far was tracking down the air_density problem. The developer has three physics models in the code, vector mode, a basic flight model, and flight model #2. The air_density parameter changes in each one and one of the mods missed the alterations in FM2. I had to fix that before the hovering code I wrote would work.
I haven't tried the bob-up feature yet, is it working or not? I could write one if it isn't working. All I'd have to do is input a step change into the target hovering altitude. My Hover-Hold isn't slow like the video, it moves really quickly. It would surge upwards and stop at the target altitude within a second or two, then wait for you to hit the key again to drop back down.
Last edited by Javelin; 05/21/18 05:02 PM.
|
|
#4421988 - 05/21/18 07:48 PM
Re: EECH Hover Hold & Alt Hold Mods
[Re: Javelin]
|
Joined: Dec 2012
Posts: 1,382
thealx
Member
|
Member
Joined: Dec 2012
Posts: 1,382
|
As we having Christmas days here, I have a request too. As you know, autopilot is presented in the game but works pretty ugly - control of your helicopter is taken by AI and it's flying like on the rails. What will be great, and what actually I need for Hind project - waypoints following automatics, that uses same controls as a player. It will be not so accurate, but good enough to move from the base to the engagement area, and same time will act more natural. Technically, it should be not a replacement of current autopilot (which could be named "pass controls to the second pilot"), but addition to the existing hovering modes. Maybe you will be interested as it will use same code that you are changing now.
|
|
|
|