Skip to content

Instantly share code, notes, and snippets.

View haumacher's full-sized avatar

Bernhard Haumacher haumacher

View GitHub Profile
@haumacher
haumacher / create_interface.sh
Created June 13, 2022 06:32
Create serial interface for Arduino with name that matches the crrcsim convention
sudo ln -s /dev/ttyACM0 /dev/ttyS32
@haumacher
haumacher / sketch_flysky.ino
Created June 13, 2022 06:20
Arduino sketch converting PPM input to FMS-PIC serial data flying in a flight simulator with a remote control
#include <PPMReader.h>
const byte ppmInputPin = 3;
const byte channels = 6;
const unsigned PPM_MIN = 1000;
const unsigned PPM_RANGE = 1000;
const unsigned FMS_MAX = 254;
PPMReader ppm(ppmInputPin, channels);