This file contains hidden or 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
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); |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
# | |
# || ____ _ __ | |
# +------+ / __ )(_) /_______________ _____ ___ | |
# | 0xBC | / __ / / __/ ___/ ___/ __ `/_ / / _ \ | |
# +------+ / /_/ / / /_/ /__/ / / /_/ / / /_/ __/ | |
# || || /_____/_/\__/\___/_/ \__,_/ /___/\___/ | |
# | |
# Copyright (C) 2014 Bitcraze AB | |
# |
This file contains hidden or 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
# -*- 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. |
This file contains hidden or 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
// | |
// 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> |
This file contains hidden or 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
// 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 |