Skip to content

Instantly share code, notes, and snippets.

View thecodemaiden's full-sized avatar
💭
I may take over 96h to respond

Adeola Bannis thecodemaiden

💭
I may take over 96h to respond
View GitHub Profile
function [ copter ] = make_copter
%MAKE_COPTER Create a numerical quadcopter model
copter = struct;
% Simulate some disturbance in the angular velocity.
% The magnitude of the deviation is in radians / second.
%deviation = 20; thetadot = deg2rad(2 * deviation * rand(3, 1) - deviation);
@thecodemaiden
thecodemaiden / hover.py
Created March 18, 2015 22:33
CrazyFlie hover
# -*- coding: utf-8 -*-
#
# || ____ _ __
# +------+ / __ )(_) /_______________ _____ ___
# | 0xBC | / __ / / __/ ___/ ___/ __ `/_ / / _ \
# +------+ / /_/ / / /_/ /__/ / / /_/ / / /_/ __/
# || || /_____/_/\__/\___/_/ \__,_/ /___/\___/
#
# Copyright (C) 2014 Bitcraze AB
#
@thecodemaiden
thecodemaiden / boost_info_parser.py
Last active November 22, 2023 00:15
A python class that can parse the INFO format used for Boost.PropertyTree (http://www.boost.org/doc/libs/1_55_0/doc/html/property_tree.html)
# -*- Mode:python; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
#
# Copyright (C) 2014 Regents of the University of California.
# Author: Adeola Bannis
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
@thecodemaiden
thecodemaiden / BPTextureCache.h
Last active December 31, 2015 21:49
How to use a texture atlas from Zwoptex in your SpriteKit game
//
// BPTextureCache.h
// BallPuzzle
//
// Created by Adeola Bannis on 11/2/13.
// Copyright (c) 2013 Adeola Bannis. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <SpriteKit/SpriteKit.h>
// Pin for the LED
int LEDPin = GREEN_LED;
int speakerPin = P1_1;
// Pin to connect to your drawing
int button1N = 4;
int button2N = 5;
// This is how high the sensor needs to read in order
// to trigger a touch. You'll find this number
// by trial and error, or you could take readings at