Comments (6)
@mr337, have you tried to reboot your Navio?
Python example can stuck if something else is trying to get access to GPS. For example if both C++ and Python examples launched at the same time.
from navio2.
@smirnov1993 Yeah and I have had that, especially with running two C++ example the second will get a UBLOX test fail, which is great!
After a clean restart via power cycle I'm still getting the same thing. Here is a console output that shows the C++ version working, nothing is running, and the python example.
pi@navio ~/Dev/Navio2/C++/Examples/GPS (gps_output*) $ ./gps
SOLU TOW 320956
SOLU Longitude -93.368036
SOLU Latitude 37.194966
SOLU Height_Ellipsoid 349.662
SOLU Height_Sea 378.663
SOLU Horizontal_Accuracy 1.354
SOLU Vertical_Accuracy 2.488
GNSS Fix 1
GNSS Status 3DFIX
SOLU TOW 320957
SOLU Longitude -93.368036
SOLU Latitude 37.194966
SOLU Height_Ellipsoid 349.744
SOLU Height_Sea 378.745
SOLU Horizontal_Accuracy 1.352
SOLU Vertical_Accuracy 2.487
SOLU TOW 320958
SOLU Longitude -93.368037
SOLU Latitude 37.194965
SOLU Height_Ellipsoid 349.803
SOLU Height_Sea 378.803
SOLU Horizontal_Accuracy 1.355
SOLU Vertical_Accuracy 2.492
^C
pi@navio ~/Dev/Navio2/C++/Examples/GPS (gps_output*) $ ps aux | grep gps
pi 1203 0.0 0.2 4276 1888 pts/0 S+ 17:09 0:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn gps
pi@navio ~/Dev/Navio2/C++/Examples/GPS (gps_output*) $ cd ../../../Python
pi@navio ~/Dev/Navio2/Python (gps_output*) $ python GPS.py
^CTraceback (most recent call last):
File "GPS.py", line 177, in <module>
buffer = ubl.bus.xfer2([100])
KeyboardInterrupt
pi@navio ~/Dev/Navio2/Python (gps_output*) $
from navio2.
Could you please run python example with strace
?
Run: strace python GPS.py
It will give us info about which system calls failed
from navio2.
Gah, so when running strace it seems to work :D
I may have to do a screencap to show what I'm experiencing.
from navio2.
So in short, when I do a python GPS.py
it just hangs, and every now and then it will print a message.
Here is a screencap where I redacted the gps coords but you can check the timing. Literally it works when I run it with strace or attach strace to the proc. Its werid!
from navio2.
Fixed with #17. Thanks for pointing out!
from navio2.
Related Issues (20)
- build AHRS with CC. HOT 2
- Add support for GPS NAV-PVT messages HOT 1
- Broken URL in AHRS.hpp comment
- GPS frequency heavily influenced by SPI baudrate HOT 10
- Navio2 Python - pwm cleanup problem
- make ADC_Navio2::initialize() return bool HOT 2
- pigpio.h no such file or directory: on master branch HOT 2
- What is the axes orientation for the output from AHRS and AccelGyroMag examples
- Pwm: Are the pwm units same for cpp and Python
- Wrong magnetometer values by driver LSM9DS1. HOT 1
- MPU9250 can't init AK8963 correctly. HOT 2
- Information on Python version HOT 8
- Circuit schematic HOT 1
- Is Navio2 compatible with the new Raspberry Pi4? HOT 2
- GPS not working with latest version of emlid-raspbian and APM HOT 1
- Operation not permitted pwm HOT 6
- Unexpected behavior with Servo example
- Wrong coordinate system and alignement for the python lsm9ds1 driver HOT 6
- unexpected error when following navio2 ros documentation
- Unreachable code for python barometer library
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 navio2.