Code Monkey home page Code Monkey logo

ublox's Issues

aproblem

hello,here is my problem :
i follow the usage describle in the usage.png
nav_posllh = x.read()
No errors have been found as of now
and then when i go next
nav_posllh.lat
it says that nav_posllh has no attribute 'lat'
nav_posllh.l
it says that nav_posllh has no attribute 'l'
could u help me with that ,thanks

Possible to read multiple messages?

Hi,

Hopefully I am misunderstanding how to use this and this is a simple answer. I'm trying to read the NAV-PVT and NAV-DOP messages from my NEO-M8N (via the EVK-M8N eval kit). When I do x.read(), I only get NAV-PVT. I turned on NAV-PVT and NAV-DOP in U-Center (UBX > CFG > MSG), and when I tried running a while loop like:

while(True):
    print(x.read())

I only get 01 07 (PVT):

>>> while(True):
...     print(x.read())
... 
Receiving
01 07
<ubx.UbxMessage object at 0x7f7f9adfcb70>
Receiving
01 07
<ubx.UbxMessage object at 0x7f7f9adfcb70>
Receiving
01 07

x.enable_message(1,4) does not seem to do anything:

>>> x.enable_message(1,4)
Transmitting
06 01
Receiving
05 01
Acknowledged. CLS:0x6 ID:0x1
<ubx.UbxMessage object at 0x7f7f9b053208>
>>> x.read()
Receiving
01 07

and after running it, if I look in u-center, NAV-DOP was disabled ??
If I go into U-Center again and disable PVT and enable DOP, x.read() will give me the DOP message:

x.read()
Receiving
01 04
<ubx.UbxMessage object at 0x7ff83e846240>

I'm using Python 3.5.3 and the latest ublox library from your git repo. Any ideas? I need to be able to read DOP and PVT as they come in real time. Thank you!

Bug in a read function

read function compares bytes with string data type for "0xb5" == 'b5' and causes issue in functioning. Please check.

Code getting stuck trying to read ubx_id 2

Hey,

Following your tutorial online I tried the following:

ubx_obj = ubx.UbxStream('/dev/serial0')
ubx_obj.enable_message(1,2)
ubx_obj.enable(1,6)

then in a loop i am reading it using
ubx_obj.read()
I then store the data i get depending on which id is being called in your code.
I am encountering this bug where it reads for around 10 to 15 mins or so and then spontaneously stops sending in the data from id 02 but sends in the ecef data from id 06.

Does this bug make any sense to you? Have you dealt with this before?

Type Error NAV_PVT

Getting a type error when receiving a NAV_PVT message.
I enable the message with enable_message(1, 7) and then do a read().

Receiving
01 07
Traceback (most recent call last):
File "", line 1, in
File "/home/pi/rocketman/ublox.py", line 130, in disable_message
if(self.__confirmation()):
File "/home/pi/rocketman/ublox.py", line 203, in __confirmation
answer = self.read(reset=False)
File "/home/pi/rocketman/ublox.py", line 114, in read
return UbxMessage(ubx_class, ubx_id, dev=self.dev, version=self._version)
File "/home/pi/rocketman/ublox.py", line 231, in init
messageubx_id
File "/home/pi/rocketman/ublox.py", line 230, in
'07': lambda: self.__ubx_NAV_PVT(kwargs["dev"])}
File "/home/pi/rocketman/ublox.py", line 426, in __ubx_NAV_PVT
self.iTOW, self.year, self.month, self.day, self.hour, self.minute, self.second, self.valid, self.tAcc, self.nano, self.fixType, self.flags, self.flags2, self.numSV, self.lon, self.lat, self.height, self.hMSL, self.hAcc, self.vAcc, self.velN, self.velE, self.velD, self.gSpeed, self.headMot, self.sAcc, self.headAcc, self.pDOP, reserved11, reserved12, reserved13, reserved14, reserved15, reserved16, self.headVeh, self.magDec, self.magAcc = struct.unpack('=LH5BBLlB2BB4l2L5lLLH6BlhH', payload_cpy)
TypeError: a bytes-like object is required, not 'str'

Should disable_NMEA call take ~5min to complete ?

I'm using this call since I only want to get UBX protocol messages at a high rate (5 times a second). I've noticed though that the higher my baudrate that the longer this call takes, sometimes not even completing. When I drilled down into the call, I kept getting a long wait or error when trying to disable 0xF0 0x42.....as soon as I took that out from the list it worked consistently. Is there any reason why this call would fail or take so long compare to the other ones?

NAV-RELPOSNED

Hi,
Firstly, I want to say thank you for making this libary. It is easy to understand the code but I have problem with reading data.
I would like to get messages from NAV-RELPOSNED but in the libary there are no code for that.
I tried to code it for myself but I faild and you seem a much better programmer than me so please tell me how is it possible te get the position from that. I would be really helpfull for me and also for my half-year homework.
I send you what i have programmed yet but it is not that much :D

I am waiting for your reply and thank you.
import serial
import math

import ubx

x = ubx.UbxStream(serial.Serial(port='COM6', baudrate=19200, timeout=1))
x.enable_message(0x01, 0x3c)
navigation_position = x.read()

print(navigation_position.lat)
#print(navigation_position.clsID)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.