Yes. I'll make another launch after a clean recompile.Are you using the code I checked in yesterday (Rev 1228)? For me, the separation looks normal for both the regular and FWC SRBs.
That could be due to a number of issues: your drag profile is wrong, you're not correctly calculating the target altitude from the drag, or there's some other problem.I eliminated altitude-error reentry method. Yesterday I was trying to land with altitude error in debug string. I was keeping the error at max ~1km. This method resulted in very low energy. I was 4500nm from base at EI, entry angle was 1.2°. Now I'll be trying to use drag as reference somehow.
The last option here - I just wrote lookup table for altitude at given groundspeed. Table has been taken from Entry Cue Card for KSC15. Now I'll try to play with drag.That could be due to a number of issues: your drag profile is wrong, you're not correctly calculating the target altitude from the drag, or there's some other problem.
That's what I had in mind. It might be possible to look at that shuttle document you found and see how the actual shuttle calculates the target drag, and use that. Otherwise, I suspect a drag vs. speed table is the best way of calculating target drag.So, my idea: I need to check lookup table for desired drag at certain groundspeed, then calculate altitude where I can achieve that drag? Lookup table for air density will be needed too, as you mentioned. This is what you mean?
Doubt it as the ALT flights were subsonic and drag control is only in play during hyper/supersonic regions.Yesterday I read whole document and there isn't any info about drag formula, only algorithms and function names, for example: if something then execute function. No function bodies, but I wonder if they are published in ALT book. Anyway, I'll give it a try.
I'd be interested in hearing other opinions, but the the base list should probably go in the mission file. The code for selecting the landing site is already available, although only KSC is listed at the moment. You can look at the AerojetDAP::CalculateRangeAndDELAZ function to see how it works (no sure if you've seen this already).Good news. Fizyk helped me to find equations to calculate required average drag needed to arrive over the base with ground speed of 300m/s, and equation to estimate atmosphere density at given altitude with given speed, so we don't need any lookup table now. So I did first test with drag equation only, and it seem to work very good. I was 1 mach when starting my turn to intercept HAC.
TODO:
-Autopilot that will follow drag profile and keep altitudes error as close 0 as possible. Should be ready in few days.
-Base selection we want to reenter to. Now it's only KSC. I'm thinking of loading base list from file, but maybe there is simplier formula.
I have nothing against itI'd be interested in hearing other opinions, but the the base list should probably go in the mission file.
Yeah, I've seen that function already. I'm using it to calculate delAZ and range at the momentThe code for selecting the landing site is already available, although only KSC is listed at the moment. You can look at the AerojetDAP::CalculateRangeAndDELAZ function to see how it works (no sure if you've seen this already).