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
| // I2Cdev library collection - Main I2C device class | |
| // Abstracts bit and byte I2C R/W functions into a convenient class | |
| // 2013-06-05 by Jeff Rowberg <jeff@rowberg.net> | |
| // | |
| // Changelog: | |
| // 2013-05-06 - add Francesco Ferrara's Fastwire v0.24 implementation with small modifications | |
| // 2013-05-05 - fix issue with writing bit values to words (Sasquatch/Farzanegan) | |
| // 2012-06-09 - fix major issue with reading > 32 bytes at a time with Arduino Wire | |
| // - add compiler warnings when using outdated or IDE or limited I2Cdev implementation | |
| // 2011-11-01 - fix write*Bits mask calculation (thanks sasquatch @ Arduino forums) |
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
| #ifndef LMotorController_h | |
| #define LMotorController_h | |
| #include "Arduino.h" | |
| class LMotorController | |
| { | |
| protected: |
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
| // I2Cdev library collection - MPU6050 I2C device class | |
| // Based on InvenSense MPU-6050 register map document rev. 2.0, 5/19/2011 (RM-MPU-6000A-00) | |
| // 8/24/2011 by Jeff Rowberg <jeff@rowberg.net> | |
| // Updates should (hopefully) always be available at https://github.com/jrowberg/i2cdevlib | |
| // | |
| // Changelog: | |
| // ... - ongoing debug release | |
| // NOTE: THIS IS ONLY A PARIAL RELEASE. THIS DEVICE CLASS IS CURRENTLY UNDERGOING ACTIVE | |
| // DEVELOPMENT AND IS STILL MISSING SOME IMPORTANT FEATURES. PLEASE KEEP THIS IN MIND IF |
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
| /********************************************************************************************** | |
| * Arduino PID Library - Version 1.0.1 | |
| * by Brett Beauregard <br3ttb@gmail.com> brettbeauregard.com | |
| * | |
| * This Library is licensed under a GPLv3 License | |
| **********************************************************************************************/ | |
| #if ARDUINO >= 100 | |
| #include "Arduino.h" | |
| #else |
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
| #include <PID_v1.h> | |
| #include <LMotorController.h> | |
| #include <I2Cdev.h> | |
| #include "MPU6050_6Axis_MotionApps20.h" | |
| #if I2CDEV_IMPLEMENTATION == I2CDEV_ARDUINO_WIRE | |
| #include "Wire.h" | |
| #endif | |