Skip to content

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone

Porting a Fortran Flight Simulator to Unity3DThere’s an old saying (paraphrasing a quote attributed to Hoare): “I don’t know what language scientists will use in the future, but I know it will be called Fortran.”

Uncategorized
1 1 0
  • Porting a Fortran Flight Simulator to Unity3D

    There’s an old saying (paraphrasing a quote attributed to Hoare): “I don’t know what language scientists will use in the future, but I know it will be called Fortran.” The truth is, there is a ton of very sophisticated code in Fortran, and if you want to do something more modern, it is often easier to borrow it than to reinvent the wheel. When [Valgriz] picked up a textbook on aircraft simulation, he noted that it had an F-16 simulation in it. In Fortran. The challenge? Port it to Unity3D.

    If you have a gamepad, you can try the result. However, the real payoff is the blog posts describing what he did. They go back to 2021, although the most recent was a few months ago, and they cover the entire process in great detail. You can also find the code on GitHub. If you are interested in flight simulation, flying, Fortran, or Unity3D, you’ll want to settle in and read all four posts. That will take some time.

    One limitation. The book’s simulator was all about modeling the aerodynamics using data from wind tunnel tests. However, the F-16 is notorious for being a negative stability aircraft — meaning it’s virtually impossible to fly by hand. It is very maneuverable, but only if you let the computer drive using the flight control system. When you direct the aircraft, the control system makes your desire happen, while accounting for all the strange extra motions the plane will create as it flies.

    The problem: the book doesn’t include code for the flight controller. [Valgriz], of course, wrote his own. He uses some PID controllers along with limiters for G-force and angle of attack. Interestingly, to do this, the simulator actually runs its own stripped-down simulator to determine the effects of different control inputs.

    This is one of those projects we aren’t sure we would attempt, but we’re glad someone did, and we can watch. Just be careful. An interest in flight simulation can lead to reduced space in your garage. We know of at least one F-16, by the way, that has an Arduino in it. However, it is probably the only one.

    youtube.com/embed/2HZQnnxdISM?…

    youtube.com/embed/7vAHo2B1zLc?…


    hackaday.com/2025/10/01/portin…


Gli ultimi otto messaggi ricevuti dalla Federazione
  • @tfb it was! And I was so surprised!

    read more

  • Dopo 16 anni passati con noi la mia piccola Margot questa sera ha passato il Ponte dell'Arcobaleno.
    Ciao piccola pazza, grazie di tutto il tempo passato assieme.

    read more

  • Zapp: There's only one surefire way back into a woman's heart and
    parts beyond. I speak, of course, of Karaoke.

    read more

  • @DarioZanette ah per quello, MAMiL come se piovesse, tra l'altro odiati da pedoni ed altri ciclisti urbani tanto quanto dagli automobilisti.

    read more

  • GIORNATA DI ARTIVISMO

    Domenica 22 marzo, dalle 14:30 alle 23:00, presso LOCK - Laboratorio Occupato Kasciavìt, Via San Faustino 62, Milano

    UNA GIORNATA DI ARTIVISMO

    🗓️ (questa) Domenica 22 marzo dalle 14:30 alle 23

    📍@collettivo_kasciavit - Via S. Faustino 62 - in occasione del Mercato Lockale

    Dove siamo? Come stiamo? Cosa desideriamo?

    Come rete di Artivismo ci siamo posti queste e altre domande per creare insieme una giornata dedicata all’Arte resistente dove condividere pratiche e parlare di espressione, dissenso creativo, utopie e immaginazione.

    Nel corso del pomeriggio, fino a tarda sera, si alterneranno reti, collettivi e artistə che abitano le arti con valenza politica: dalla fotografia al fumetto, dal rap all’electropunk, dal teatro alla poesia.

    ✨ Con Andrea Bellaroto · Apollineo · ArT* Festival · Casa per la Pace · Freevan · Hurricane Ivan · Inmotulus · Kamera Lab · Mattia L. · Nebüla · No Kings Milano · RAVE OVER · Rete No CPR · Rocks Against Fascism · Scate · Tempi DiVersi · Timidoceleste · Una Finestra Sbagliata

    🍽️ Fermati a cena! Troverai un apertivo/cena vegan per smangiucchiare tutto il pomeriggio, a sostegno delle spese dellə artistə e dei collettivi presenti.

    Ti aspettiamo!

    🎨 @grafica_x e @ele_vi

    read more

  • @crc i can't find description of Pali on your site.

    nevermind, this language is pretty straightforward. i would read sequences of insructions like "lisuli" and interpret them as phrases.

    read more

  • @RnDanger @tess that's a good idea, «How much care goes into avoiding strain on the affected part.» as a gauge of the pain (at least where possible, so not for teeth abscesses, probably, but now that you make me think about it it's probably why‌ I decided to go get an Xray of the wrist when I fell down skating).

    read more

  • I have the following set in my .kshrc to do exactly that.

    # coloured man pages
    man() {
    sh -c "man '$@' | col -bx | bat -l man"
    }
    read more
Post suggeriti