Jump to content

contactlight

Members
  • Posts

    7
  • Joined

  • Last visited

Personal Information

  • Flight Simulators
    DCS, IL-2
  • Location
    United States
  • Occupation
    Scientist

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. @Reflected Here's my attempt at recreating the sound. This is a sweep from -320 meters to 320 meters, transitioning from on-off dots to a continuous tone and then dashes plus a tone. Curiously, I can't hear modulation of less than 10% (32 meters of error or 0.4 dB), whereas pilots were expected to be able to hear about 5%. I added a second harmonic to the carrier tone to make it less harsh. oboecatsweep.wav
  2. I tried implementing this for Draken35's code. The trick is that you have to low-pass filter the radial velocity (v dot r/|r|) using a simulated RC filter with a 40 second time constant to match how the tracking station circuitry differentiated the range trace. This is only a handful of additional lines of code. If you don't do this, the slightest bank will shift the beam by hundreds of meters in seconds. You then multiply the smoothed velocity by 40 seconds again and then shift the Cat range by that integrated range. To be honest, I tried it and I don't think it makes flying the mission easier. It has a weird effect of straightening the flight path out when viewed in Tacview and my aim was confused enough to get me about 300 meters to the left of my target. It does make the approach somewhat easier since you get a signal to turn inward several kilometers before you hit the nominal track. I might just need more practice, so I'll experiment more and let you know.
  3. I found this postwar film on RAF radar research that contains a sample of what Oboe may have sounded like. The section on Oboe begins at 24:49 and the sound sample is at 25:35. Pardon that the video was posted by a UFO enthusiast. The Cat tone in the film is much higher frequency than what we've been working with in DCS, about 1 kHz fundamental with a roughly triangular waveform. The Mouse release signal is more buzzer-like and easily distinguished from the Cat. It has a more sawtooth waveform. I wanted to verify what the tone may have sounded like and Jones (1946) says the audible Cat tone had an audible frequency of 1064 Hz. The X, Y, Z, A, B, C tones are at 194 Hz. These line up with the film well. These tones are unpleasant and I can understand if you and @Reflected choose to stick with a more pleasant woodwind sound. The Morse signal is also modulating a continuous tone rather than performing on/off keying, so the pilot hears the dots and dashes bumping the 1064 Hz tone louder. When the aircraft is on the beam, the dots and dashes fade, resulting in a continuous tone. An error of 18 yards or 1/6 of a degree is sufficient to hear faint dots or dashes. Another interesting detail from the paper was that the the Cat signal was modulated according to both the residual range and range rate (or course deviation times speed). If I'm reading this correctly, this means that the pilot would hear a continuous tone if they were off the nominal range, but their course deviation was appropriate to get them back on track in a certain amount of time. The feedback was tuned so the ratio of range deviation to range rate deviation was normally 40 seconds, which is both roughly the typical fall time for a bomb and the maximum amount of level flight time within the beam. This is useful because adding a velocity feedback term both dampens the oscillations of the flight path over time and ensures the pilot's range error on release are compensated by their course error. As the equations I posted above show, you can hit your target if you're off beam with a course deviation inversely proportional the your speed and the bomb time of flight. In terms of the game, I think adding a velocity term to the "on track" condition could result in a smoother Oboe flight.
  4. I think 6.5 C/km that may be your best bet. It's tied to the International Standard Atmosphere and ICAO reference atmosphere and applies to typical water vapor content. I let an F/A-18 glide to the ground on idle and its inlet and fuel temperatures varied by about 4-6 C/km.
  5. I wish I could be more helpful. I am using a modified version of your script, but the error predates the modifications. I'm using the same Mist library as was provided in the original download. Here's a Python function from my ballistics code for computing atmospheric density as a function of altitude, surface pressure, and temperature lapse rate. To convert true airspeed to indicated at low Mach numbers, you simply run this function at altitude with the surface temperature and pressure in the briefing to get the local air density, and then estimate IAS by multiplying the true airspeed by the square root of the ratio of the density at altitude to the density at sea level under standard temperature and pressure (1.225 kg/m^3). IAS = TAS*sqrt(density(h, p0, T0, lapse_rate)/1.225) def density(h, p0, T0, lapse_rate): M = 0.02896968 R = 8.314462618 g = 9.80665 p = p0*(1-lapse_rate*h/(273.15+T0))**(g*M/R/lapse_rate) rho = p/(273.15+T0-lapse_rate*h)*M/R return rho It's the same idea, but instead projecting the error on the sine and cosine of the clock angle. In your example, what I'd be looking for is something like: Distance: 250 m L: -125 m T: -216 m The L (longitudinal, along-track) component says how short or long the landing was, indicating how well I timed my release and flew the correct ground speed and altitude. The T (transverse, cross-track) component tells me how far left or right the bombs landed, which is a function of how close I was to the beam and correct release heading. Obviously, the most important thing to know is the total distance because it predicts damage, but I think the Cartesian approach allows the user to better understand why their shot missed. A more plain-language approach might be: 250 m from target | 125 m LEFT | 216 m SHORT We're good, then. You can see in the attached mission that I have already moved the aircraft and fixed the target to a non-random value. It's good to leave these instructions up.
  6. I haven't had to use aileron trim at all since I turned my roll deadzone off.
  7. Continuing our discussion from the file comments, I once again want to thank you for putting this together. Your and Reflected's work have really stirred my imagination and problem-solving drive. I've learned a ton from playing this mission, studying historical documents, and playing with your code. I have some insights and suggestions I want to share. Bugs The Report Results feature does nothing after the bombs landed. There is nothing unusual in dcs.log. Feature Requests Briefing should have both ground speed and indicated air speed with clear distinction between the two. Swap the sign convention on the training aid so the range is negative if you're too close to the Cat station and positive if too far. Add a rough function for bomb trail so the bombs land in the target zone. More on this below. I would like to see how precisely I flew on the beam (RMS error about the Cat radius) and how close to the nominal parameters (beam distance, heading, speed, altitude, timing) my release was. It's possible to use the linearized equations below to see how each error contributed to how much the bombs missed. It may be better to report the bomb results in along-track and cross-track components rather than polar coordinates. Add an Air Start option near the 20-mile rally point so it's possible to get more practice. Staying on beam While on beam, use shallow bank (<10 degrees) to make course corrections of 2-5 degrees. Very little rudder is required for coordination because you are at cruise speed, but a brief tap is helpful to initiate yaw when banking. Avoid using pitch to initiate the turn because it will mess up your speed and altitude. Use the turn coordinator to ensure turns are consistent. For a ground speed of 300 mph and a Cat radius of 100 miles, staying on beam means turning toward the Cat station at and average rate of 3 degrees per minute. This is 1/60th of a standard-rate turn and requires about half a degree of constant bank. While Mosquito pilots report being able to stay on beam using gentle pressure on the rudder, this might not be easy for the average sim player's hardware. I think the best beginning strategy is to bounce between the edges of the beam in straight and level flight. This is similar to how real pilots fly DME arcs. The length of the longest possible straight path through an equisignal beam with width w and radius r is approximately 2*sqrt(2rw). For a 100 mile Cat radius and 32 meter beam width, this is 4 miles, or 48 seconds at 300 mph. One possible strategy for flying the beam is to bounce along its edges like a photon in an optical fiber. Fly in a straight line and make a 4 degree turn toward the Cat station every time you hear dashes and a 2 degree turn away from the Cat station every time you year dots. Adjust the turn heading if you go more than 30 seconds without the beam. While in level flight, you are always being accelerated away from the Cat station in the rotating frame. This means you need less extreme course corrections to move away from the Cat station than to move toward it. While within the beam, try to compensate for this centripetal by making gentle turns of about 1 degree toward the Cat station every 10-20 seconds. Accuracy The basic equation for the travel distance of a projectile launched in a vacuum is: where L is the along-track displacement of the projectile, v is the ground speed, and t is the time of flight. The cross-track error T may be expressed according to the course error (delta_theta) and distance from the beam: For a projectile in a vacuum, the time of flight may be expressed as . For a drop from 20,000 feet, the fall time is about 36 seconds. Therefore, the distance traveled is: L = \frac{v}{g}\left (\sqrt{2hg+\dot{h}^2}+\dot{h}\right )\\ where g is the acceleration of gravity, h is the release height, and hdot is the vertical speed (which is much smaller than 2hg). This equation does not account for trail to to drag, but trail is normally only about 10% of the total distance traveled. This vacuum equation can be differentiated to explore the relationships between small errors in the release parameters and the impact point. So, if we differentiate L and T with respect to all six terms, we get the following approximate linearized relationship between the impact point and errors in the release parameters. \Delta L = v\Delta t+ t\Delta v+\frac{v}{gt}\Delta h+\frac{v}{g}\Delta \dot{h} The implications of these equations are that in order to get within 100 meters of the target, the Mosquito needs to release with six parameters matching their nominal values, in order of priority: On beam ±2 mph of ground speed ±1 degree of course ±0.3 seconds of the release signal ±300 feet of altitude ±600 feet per minute of vertical speed Speed, beam position, and course are the most critical. There's a ton of flexibility in altitude and vertical speed, meaning that the pilot should prioritize matching the correct ground speed at the release over altitude. The easiest way to get to a speed quickly is by changing pitch because gravity provides more acceleration than the engines. Good energy management on the flight path can ensure that speed and altitude are easily converted into an accurate shot. At 300 mph GS, 100 ft of excess altitude may be converted into 5 mph of speed while conserving energy. Heading needs to be adjusted to the correct release heading by the dash on the 5T release signal. If you're steady on the beam, you should be close enough to the correct heading to have time to make this correction. Bomb Trail Distance I noticed in your script that the target zone was displaced from the nominal target because of the vacuum approximation. I did some simulations of the bomb's trajectory, using Tacview for calibration and found a good empirical function for trail distance. I modified the code and now I can get the bombs within 100 meters of the target. I took at peek at the Lua files for WWII weapons and found the mass and frontal area of the GP 250 Lb Mk V. The cx_coeff line for the drag coefficient and its dependence on Mach number is inscrutable to me, so I had to to infer the drag coefficient using a least-squares fit to the vertical speed of the bomb as function of time. I generated a simulation of the bomb's trajectory using SciPy's odeint at various release heights and speeds. To find the drag coefficient, I also propagated a state transition matrix to linearly relate the initial parameters to small differences in these parameters as a function of time. I then used least-squares to fit these values to vertical velocities measured in Tacview, which gave me a good estimate of the modeled drag coefficient. My trajectories can predict the Tacview data within about 1 m/s. I used the Prandtl-Glauert factor to approximate the drag coefficient's dependence on Mach number. With a good drag coefficient model in hand, I simulated trajectories for a range of of release heights and was able to generate contour plots of trail distance as a function of release altitude and speed. These functions were relatively smooth, so I fit a power law to them, which yielded this: Forgive the unit system stew. This expression typically matches my simulations within 30 meters. Notice the near-linear dependence of the trail distance on altitude. This jives with the conventional wisdom that bombs fall at a constant trail angle that depends only on airspeed. I added this formula to the Oboe script and then subtracted the trail distance from the release distance in the code. I can now get within 100 meters of the target, but I have yet to actually damage the ground unit. oboe.lua OBOE_DEMO_DAY_quickmod.miz
×
×
  • Create New...