Comments (8)
@julianoes @mcharleb
Julian,
Perhaps if the mag is left powered on, it can't be reinitialized.
What I would recommend is to enhance the detect function in the mag class to power cycle the mag, in the same way that the get_sensitivity_adjustment method does. This might be enough to make it responsive again.
Jim W.
from driverframework.
Thanks @jywilson. I tried to do what you suggested but it didn't work because the I2C transfer itself always seemed to time out. I did some tries to reset the master I2C, and reset the I2C slave. Results were not really conclusive but I haven't seen the problem since. I'll give it some more testing this week.
from driverframework.
Unfortunately, the problem is back.
from driverframework.
Just to clarify, the mag only has init problems after stopping and restarting the flight stack. Is this correct?
It would probably make sense to modify the unit test to try and repro this issue, just to eliminate possible interactions with the flight stack.
I will try to look at this issue later this week and assign the problem to myself.
from driverframework.
Just to clarify, the mag only has init problems after stopping and restarting the flight stack. Is this correct?
Yes correct. I can reproduce it as well using the df_imu_test though, however, this one gets stuck and doesn't seem to return (and doesn't react to Ctrl+C).
I would appreciate your help, I haven't had any luck with all my tries so far.
from driverframework.
@jywilson Did you find anything here? Were you able to reproduce it?
from driverframework.
The failure is also reproducible on the RPi2 with Navio2.
from driverframework.
Fixed by #117.
from driverframework.
Related Issues (20)
- Fix collect logic in MS5607 HOT 6
- how use gpio as spi select HOT 2
- could you add rc in. rc out. adc sim. i want use pxio board HOT 3
- Should lock in WorkItems be removed? HOT 1
- Accelerometer readings are offset on some MPU9250 devices HOT 13
- Macro inconsistencies HOT 4
- DPLF settings for all drivers need review HOT 2
- IMU delta time calculation problem HOT 1
- coverity defects HOT 3
- Sonar inoperative on Bebop 2 HOT 8
- sample_interval_usec is not essential for pca9685 HOT 2
- Rework DF so we don't hardcode the sensor interface at compile time HOT 1
- Linux and WorkQueues HOT 3
- MPU9250 mag start failure HOT 6
- MPU9250 Audit HOT 15
- Bug in DriverFramework.cpp ? 'wait_time_usec' was not declared in this scope HOT 1
- Priority way too low HOT 5
- Bebop 2 Rangefinder real-time issue HOT 1
- Raspberry Only HCM5983 Compass Calibration not working HOT 1
- DSP console flodded with printfs HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from driverframework.