This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
case MAVLINK_MSG_ID_PARAM_REQUEST_LIST: { | |
mavlink_param_request_list_t request; | |
mavlink_msg_param_request_list_decode(&msg, &request); | |
/* this is how you would load a setting for the component when | |
* replying to a settings request | |
*/ | |
QSettings settings; | |
settings.beginGroup("OpenHDCamera"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
QT_MAJOR_VERSION=5.13 | |
QT_MINOR_VERSION=1 | |
# fix broadcom opengl library names without breaking anything else | |
ln -sf /opt/vc/lib/libbrcmEGL.so /opt/vc/lib/libEGL.so | |
ln -sf /opt/vc/lib/libEGL.so /opt/vc/lib/libEGL.so.1 | |
ln -sf /opt/vc/lib/libbrcmGLESv2.so /opt/vc/lib/libGLESv2.so | |
ln -sf /opt/vc/lib/libbrcmGLESv2.so /opt/vc/lib/libGLESv2.so.2 | |
ln -sf /opt/vc/lib/libbrcmOpenVG.so /opt/vc/lib/libOpenVG.so | |
ln -sf /opt/vc/lib/libbrcmWFC.so /opt/vc/lib/libWFC.so |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import picamera | |
import subprocess | |
from time import sleep | |
proc = subprocess.Popen([ | |
'/usr/bin/gst-launch-1.0', | |
'fdsrc', '!', | |
'h264parse', '!', | |
'rtph264pay', 'config-interval=1', 'pt=96', '!', | |
'udpsink', 'host=192.168.40.14', 'port=5600' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Author: Jurgen "PlantCorn" Schull <[email protected]> | |
* I originally created this for a mode 2 controller (Turnigy 9xr Pro) as most of the other | |
* solutions available to me simply did not work or were too much of a pain. | |
* things such as smartpropro plus did not work at all for me, and out of frustration I | |
* created this. I calibrated the controller, and within minutes i was able to use my | |
* favorite sims, I hope this also works for you. | |
* Be sure to upload to your teensy in serial+keyboard+mouse+joych mode, 72mhz optimized | |
* i used a Teensy 3.1 with ppm input on pin 10 and ppm ground to GND | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Complete USB Joystick Example | |
You must select Joystick from the "Tools > USB Type" menu and edit the Teensy headers to enable | |
the maxy axis joystick mode, otherwise some of the axis will not be available | |
*/ | |
void setup() { | |
// you can print to the serial monitor while the joystick is active! | |
Serial.begin(115200); | |
// configure the joystick to manual send mode. This gives precise | |
// control over when the computer receives updates, but it does |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Complete USB Joystick Example | |
You must select Joystick from the "Tools > USB Type" menu and edit the Teensy headers to enable | |
the mega-joystick mode, otherwise some of the axis will not be available | |
*/ | |
void setup() { | |
// you can print to the serial monitor while the joystick is active! | |
Serial.begin(115200); | |
// configure the joystick to manual send mode. This gives precise | |
// control over when the computer receives updates, but it does |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
install_name_tool -id "@rpath/libmy.dylib" dist-x86_64-apple-darwin/lib/libmy.dylib || true | |
clang -o test src/test.c -rpath dist-x86_64-apple-darwin/lib -Ldist-x86_64-apple-darwin/lib -Idist-x86_64-apple-darwin/include -lmy -O2 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// error: | |
error[E0277]: the trait bound `mymodule::MyHeader: mymodule::reqwest::header::Header` is not satisfied | |
// in crate root | |
#[macro_use] extern crate hyper; | |
// original code in mymodule using header! macro from Hyper | |
extern crate reqwest; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func search(words: [String]?) -> [Codepoint] { | |
guard let searchTerms = words else { | |
print("failed to unpack words") | |
return [] | |
} | |
var predicates : [NSPredicate] = [NSPredicate]() | |
for term in searchTerms { | |
let codePredicate = NSPredicate(format: "(%@ IN[cd] code)", term) | |
let typePredicate = NSPredicate(format: "(%@ IN[cd] type)", term) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-----BEGIN PGP SIGNED MESSAGE----- | |
Hash: SHA512 | |
I am transitioning my gpg key from a 2048-bit RSA key to a new | |
4096-bit RSA key. | |
The new key is signed by the old key, and this transition document | |
is signed with both keys. | |
NewerOlder