Skip to content

Instantly share code, notes, and snippets.

View Parell's full-sized avatar
💀
Dying slowly

Daniel John Parell

💀
Dying slowly
  • Minnesota
View GitHub Profile
@digitalshadow
digitalshadow / OpenSimplexNoise.cs
Last active June 25, 2024 07:41
OpenSimplex Noise Refactored for C#
/* OpenSimplex Noise in C#
* Ported from https://gist.github.com/KdotJPG/b1270127455a94ac5d19
* and heavily refactored to improve performance. */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
namespace NoiseTest
@brihernandez
brihernandez / SASExample.cs
Created October 5, 2022 01:32
I wrote a Stability Augmentation System once. I forgot what I read that explained it, but I was really surprised how effective it was at stabilizing a Halo Pelican. I ended up not needing a PID for the stick and rudder, since this kept the oscillations under control.
// This is a basic dummy version of a Stability Augmentation System. There's a bunch of technical
// terms for this, but I'm not a control systems engineer so feel free to correct me. I found a
// really awesome document (video?) somewhere that explained all this stuff but it was a while ago
// but I forgot where I saw it.
// This is meant to be set up per channel. It's serializable so you can change
// the authority and power of it per channel in the Inspector.
[System.Serializable]
public class SASChannel