Skip to content

Instantly share code, notes, and snippets.

@j0uni
j0uni / Futaba SBUS latency test with Arduino Mega
Last active August 15, 2016 19:19
Futaba SBUS latency test with Arduino Mega
void setup()
{
Serial.begin(115200);
Serial3.begin(100000);
pinMode(13, OUTPUT);
}
uint8_t buffer[255];
uint8_t bufferPos=0;
@j0uni
j0uni / gist:1630672c79a9894b2126f361ec4e5588
Created September 3, 2017 07:26
How to get fixed wing aeroplane work with DYS F4 FC work in iNav 1.7.2
How to get fixed wing aeroplane work with DYS F4 FC work in iNav 1.7.2 By default the motor_2 output doesn't support servos.
Use this mixer:
# mixer
mixer CUSTOMAIRPLANE
mmix 0 1.000 0.000 0.000 0.000
# servo
servo 1 700 2300 1400 125 -1
@j0uni
j0uni / fix_mysql.php
Created November 1, 2019 16:56
IDIOT-PHP-DEVELOPERS - Fix mysql_connect etc. deprecated (with mysqli_connect and so-on..)
<?php
// include file for php called "IDIOT-PHP-DEVELOPERS"
// this file is a dirty fix to fix deprecated mysql_ - functions.
// first of all, I really don't understand why these functions needed to be deprecated.
// this decision by PHP developer has caused hundreds or thousands work hours to fix
// about this "library" : it might have not all functions so feel free to continue this work