Skip to content

Instantly share code, notes, and snippets.

View mrpollo's full-sized avatar
Journey before destination

Ramon Roche mrpollo

Journey before destination
  • Tijuana, Baja California, Mexico
  • 02:59 (UTC -07:00)
  • X @mrpollo
View GitHub Profile
@mrpollo
mrpollo / Firmware-v1.11.0-beta2.md
Last active May 11, 2020 15:42
PX4 Autopilot v1.11.0-beta1 changelog

Changelog

v1.10.0-beta4 (2019-10-21)

CollisionPrevention

  • remove unnecessary double precision floating point math
from __future__ import print_function
from flask import Flask, request
from dronekit import connect, LocationGlobal, VehicleMode
import sys, time
class Drone(object):
def __init__(self):
self.vehicle = connect('tcp:127.0.0.1:5760', wait_ready=True)
self.vehicle.add_attribute_listener('armed', self._armed_callback)
@mrpollo
mrpollo / howto.md
Last active April 6, 2016 16:04
how to install px4 on OS X 10.11 with full simulation tools
#include <stdio.h>
#include <string>
#include <stdint.h>
#include <unistd.h> // for abort
#include <string.h> // for strerror
#include <errno.h>
#include <stdlib.h>
#include <memory>
#include <string>
@mrpollo
mrpollo / karabiner.xml
Last active February 1, 2016 21:41
karabiner config file for the Quickfire Rapid I
<?xml version="1.0"?>
<root>
<deviceproductdef>
<productname>
QUICKFIRE_RAPID_I
</productname>
<productid>
0x0020
</productid>
</deviceproductdef>
"""
This example code demonstrates how to use the DroneKit-Cloud API with Python.
"""
#for options parsing
from optparse import OptionParser
import pprint
import time
import requests
@mrpollo
mrpollo / .ardupilot
Last active August 29, 2015 14:19
sitl no link
export SRC_DIR='/home/vagrant/src'
export PATH=$PATH:$SRC_DIR/jsbsim/src
export PATH=$PATH:$SRC_DIR/ardupilot/Tools/autotest
export PATH=/usr/lib/ccache:$PATH
@mrpollo
mrpollo / .slate
Last active August 29, 2015 13:56
My slate configuration
# This is the default .slate file.
# If no ~/.slate file exists this is the file that will be used.
config defaultToCurrentScreen true
config nudgePercentOf screenSize
config resizePercentOf screenSize
# Window Hints
bind esc:cmd hint
@mrpollo
mrpollo / unscoped.rb
Created November 7, 2013 19:31 — forked from lwe/unscoped.rb
# Provides the ability to unscope associations, this solves problems described in
# http://stackoverflow.com/questions/1540645/how-to-disable-default-scope-for-a-belongs-to/11012633#11012633
#
# Examples
#
# class Document < ActiveRecord::Base
# default_scope where(deleted: false)
# end
#
# class Comment < ActiveRecord::Base