-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes required for ESP32 with Arduino IDE #367
Merged
Conversation
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
Since `getRawTemperature` and `getRawPressure()` return 0 on failure, the corresponding high-level functions should return `NaN`, rather than processing 0 and emitting a meaningless value.
Arduino sketch to find device-specific offsets to tell an IMU6050 that it is at rest in neutral position.
Create IMU_Zero.ino
Add IMU_Zero example for MPU-6050 zero calibration
Remove misplaces .ino example from project root
Improved search, added more instructive comments.
Improved search and added instructions in comments.
Improvements in comments and search strategy.
Remove duplicate IMU_Zero.ino from incorrect folder
Fixed typo in DS1307 implementation
Unknown function is actually setting start address of DMP, where the firmware is supposed to execute. Source: http://www.robotrebels.org/index.php?topic=318.0 << Register 109 (0x6D) Bank Select Address – firmware loaded in 256 byte banks 0-11 (total 3k) Register 110 (0x6E) Bank Memory Address – the actual byte address within the bank Register 111 (0x6F) Firmware Read/Write – the portal to read and write a byte through Register 112 (0x70) Program Start Address H – this is where this firmware version begins to execute (0x0400) {0x0300 in our case} Register 113 (0x71) Program Start Address L >>
Unknown function is actually setting start address
Added delay to keep from reading IMU faster than 200 Hz. Without the delays, program hangs on some devices. Comments expanded.
Update IMU_Zero.ino
Handle error codes in derived measurement functions
There was a wrong type of variable RawValue and it didn't compile.
Fixed wrong type of variable
The ```getAdjustment()``` and ```setAdjustment()``` functions need to put the magnetometer in fuse ROM access mode before the adjustment registers can be read as specified in the datasheet.
Added ESP32 esp-idf platform
Arduino and Processing sketches modified to support quaternion data over Open Sound Control over UDP. Arduino sketch modified to run on ESP8266.
Add pointer initialization in MPU6050.cpp
Port to STM32 using Keil MDK pack.
Entering fuse ROM access mode to read adjustment registers
Fix typos in example sketches
BMP085/BMP180: Added polling for end of conversion bit. Updated example. Removed unnecessary float.
Add support for ESP8266 and OSC
DS1307 Arduino library - build error caused by non const progmem fixed
Fix bug in writeBytes method for nRF51
Closed
This implements the integer only version of "uint8_t MPU6050::dmpGetGravity(VectorFloat *v, Quaternion *q)". int16_t *data is assumed to be a vector with 3 components int16_t data[3]. +1g corresponds to +8192, sensitivity is 2g.
Implement MPU6050::dmpGetGravity(int16_t *data, const uint8_t* packet);
Changed I2Cdev.h I2CDEV_IMPLEMENTATION back to I2CDEV_ARDUINO_WIRE
Changes I2CDEV_IMPLEMENTATION back to I2CDEV_ARDUINO_WIRE
Signed-off-by: Alexandr Zarubkin <[email protected]>
Added Shuning (Steve) Bian's SBWire no lockup library as an option in I2Cdev.h/cpp
Pls try this code ... my freezing problem is been resolved to greater extent...
Default buffer size for I2C transmissions is 32 if not otherwise set. This is a band-aid fix since there is almost certainly a more efficient way to handle this, possibly by removing the chunking process entirely from the I2Cdev layer if Wire implements it now based on its own internal buffering (not sure).
When will this pull request be merged into the master? Manually edited the files now. :) Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
To use the Lib for ESP32 within the Arduino IDE the following changes should be made:
In file I2Cdev.cpp add directly under #include "I2Cdev.h"
And in file MPU6050_6Axis_MotionApps20.h add the check for ESP32 boards