Flying Planes with Python and JavaScript
pomax.github.io
pomax.github.io
Did a similar script in kerbal space program to complete atmospheric flying missions automatically: https://github.com/Aperocky/ksp_eng/blob/master/lib/flight_l....
(That said, I'm working on a rewrite atm -it getting turned into just JS- with a follow-up that goes into PID a bit)
I know it's Python and it's supposed to be all snakes and games, but for someone who suffers from ophidiophobia (fear of snakes) when I see one unexpectedly my whole day is ruined (that's it: I see snakes everywhere attacking me).
I've been programming in Python for 20 years (the current logo is from 2006..), and while snake pictures included in articles about Python programming are rare, they trigger that fear in me (and possibly other folks).
No problems with cartoon snakes etc.
- What's your opinion of doing a stint as a snake handler at a zoo or wildlife park? I believe there are smaller snakes that tend to be a bit bitey but don't hurt very much and are completely non-venomous, and it's apparently part of the job to get used to them quickly (ie, it's the norm to rapidly reach the point of going "ok this isn't the end of the world" - basically the pins-and-needles equivalent of sticking one's arm in a tank full of daddy-long-legs spiders).
- What would you think of having designated "see a snake" days or times of day, where you reroute your adblocker to load pictures of snakes in ad frames at specific times? Going for an exposure therapy vibe, but where you control the parameters, and you start off very easy (eg, one specific day of week, time window of 1 minute, you know exactly when it'll happen to begin with lol).
Asking entirely out of "what happens to the black box if we push this button", coming from someone who has annoying random triggers that I'm trying to get to the bottom of too.
But I have a mental model of "shared cost" that I wish more people had: if the cost for me to grin an bear it is less than the sum of the costs of everyone else changing, it's probably not worth changing.
Obviously there are extreme nonlinearities involved in these costs. Very bad things for a few individuals are worth lots of small changes for a majority.
Although in other good news, I'm current reimplementing the whole thing in JS so the python parts are getting rewritten soon and the image of a fake snake on a fake plane will have to go, too.
More likely so some of the passengers is trying traffic a snake or two.
Boeing lost hundreds of millions (that it already worked into its budget) from cancelled orders alone. Just because the law didn't do enough according to you, doesn't mean you should be okay with (let alone advocate for) people dying just to teach a company a lesson.
What you want is for a company whose planes end up causing catastrophe to stay in business and never make planes like that again, because no one wins when a large aircraft manufacturer gets shut down. I would like to see all the execs involved in pushing through the "no no it's still a 737 no new training required" bullshit to get fired on the spot, without bonuses, but that's not my call to make, nor even the law's. Unless they want to sue each exec individually, which would have to be brought before the courts by "not the government". Because government is (for good reasons) not allows to meddle with how a private company is structured internally.
Well then you disagree with Boeing and the aviation regulators then.
>Just because the law didn't do enough according to you, doesn't mean you should be okay with (let alone advocate for) people dying just to teach a company a lesson.
Many more will die because the regulators aren't regulating and no one has been held responsible.
>Because government is (for good reasons) not allows to meddle with how a private company is structured internally.
So mass murder is Ok as long as it's done by a corporate executive?
If the reality of living in a country with a constitution, constitutional amendments, as well as a litany of tort and criminal law (and subsequent case law for both) that all dictate what the government can and cannot do feels libertarian to you, I have some unfortunate news for you.
The stormworks community has some amazing gyro/telemetry/PID/auto pilot controllers done in LUA of all things. Managing a helicopter in transitory flight with LUA is never something i thought i'd do.
I then used it to dampen the input of a flight yoke. The flight yoke was nearly unusable when unfiltered/undamped but nicely usable after that.