Unable to get Magnetometer information
See original GitHub issueHi all,
I am trying to get the information from the magnetometer using the following line of code:
async for compass_info in drone.telemetry.MagneticFieldFrd(): print(compass_info.forward_gauss)
but I am getting the following error
AttributeError: ‘Telemetry’ object has no attribute ‘MagneticFieldFrd’
Can you help me please?
Thank you in advance
Issue Analytics
- State:
- Created 3 years ago
- Comments:8
Top Results From Across the Web
The compass is not working on my Android phone - Stonekick
A lot of compass apps including Accurate Compass work by using data from the magnetometer sensor in your Android device. Not all devices...
Read more >INAV troubleshooting: magnetometer is not working - YouTube
Your browser can't play this video. ... up INAV: magnetometer, usually Honeywell HMC5883l magnetometer is not detected during startup and is ...
Read more >MPU9250 Sensor: Can't get correct data from Magnetometer
I am learning about the sensor MPU9250 Acc & Gyro & Magnetometer. I want to know how to get the raw data straight...
Read more >When Magnetometers (And Compasses) Go Bad
In many situations, losing heading information isn't the end of the world—especially if GPS navigation remains available—but it can have a ripple effect...
Read more >Magnetometer - an overview | ScienceDirect Topics
Magnetometers are used in geophysical surveys to find deposits of iron because they can measure the magnetic field variations caused by the deposits....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I was faced the exact issue as mentioned by OP, but those lines of code didn’t help as well. After executing the script seems to stay in an infinte loop, because there were no ouput in command prompt. On the other hand the code
is executed just fine. I was trying to connect my script to PX4 via USB on Windows 10.
Thanks for the heads-up.