-
Notifications
You must be signed in to change notification settings - Fork 70
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
pyb library? #1
Comments
I'm using python 2.7, and I'm not using a micro python board. I am using OS X YOSEMITE to filter information. |
I only need the pyb module to complete this method Integrate to yield quaternion. Is there any other way I can do the integration with another module besides pyb? These two are the methods
|
You will have to replace the pyb calls with calls to time or datetime. pyb.micros() is the time in microseconds |
Yes I have added the time function to instead of pyb. import time def elapsed_micros(start_time): If so, I am currently getting all zero's for my yaw, pitch, and roll,which is definitely wrong. |
time.time() returns seconds so you need to multiply by 1000000 to get microseconds rather than divide. |
Thank you will try it in the next couple of hours to let you know the results, so we can close this issue. |
Hi I won't have my computer until the end of the month... But I was looking at getting the IMU code working in python3 with a mpu6050. Like you I struggled to find the pyb library. Hope it works for you. |
Hey I believed the solutions works! I am getting results, but my next question is for the calibration function during the initial time does the algorithm start the position at (0,0,0) until the chip is moved? If so I am having problems with the calibration portion of the algorithm. |
Make sure to share your patches. |
I believe everything is working. Patch Update def elapsed_micros(start_time): replace these functions with pyb, and you should be ok. |
I am having a problem importing the pub library where I can I find it. Tried using pip, and didn't have any luck.
The text was updated successfully, but these errors were encountered: