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
  • 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

  • @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

  • @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

  • @oblomov @tess
    When they ask me my pain level i consider what I'm actually doing to avoid pain, because I'm really good at avoiding pain as long as i don't have to do life things. Like when I'm at the doctor instead of at work.
    I can devote my entire attention to diminishing the pain response and think I'm fine when clearly I'm not. I'm not fine, or i would have brought myself to the doctor, actually

    read more

  • @maudel l'Europa risponde con un latinissimo e romano "digitus impudicus" 🙂

    read more

  • Cesare: il dado è tratto!
    Legionario: santi numi, anche oggi brodo!?

    read more

  • @tess I think I'm in a similar situation concerning pain levels (at least according to the opinions of my doctor and my dentist), but I don't do contact sport. Can I use that as an excuse now?

    read more
Post suggeriti
  • 0 Votes
    1 Posts
    0 Views
    GIORNATA DI ARTIVISMODomenica 22 marzo, dalle 14:30 alle 23:00, presso LOCK - Laboratorio Occupato Kasciavìt, Via San Faustino 62, MilanoUNA GIORNATA DI ARTIVISMO🗓️ (questa) Domenica 22 marzo dalle 14:30 alle 23📍@collettivo_kasciavit - Via S. Faustino 62 - in occasione del Mercato LockaleDove 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#musica #mercatino #laboratorio #interventi #intersezionalità #fotografia #MusicaLive #Poesia #Teatro #banchetti
  • 0 Votes
    1 Posts
    1 Views
    - Marescia' ci hanno rubato la gazzella!- Ma porc... Ma come si fa? E non avete fatto niente!?- Niente paura, marescia', abbiamo preso il numero di targa!
  • @attualita

    Uncategorized
    1
    1
    0 Votes
    1 Posts
    2 Views
    @attualita
  • Chissà se dura...

    Uncategorized
    2
    0 Votes
    2 Posts
    1 Views
    @maudel l'Europa risponde con un latinissimo e romano "digitus impudicus" 🙂