Skip to content
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

Stuck on step "Setting up mw..." #5

Open
PepCZ opened this issue Jul 29, 2018 · 7 comments
Open

Stuck on step "Setting up mw..." #5

PepCZ opened this issue Jul 29, 2018 · 7 comments

Comments

@PepCZ
Copy link

PepCZ commented Jul 29, 2018

Hi,

Perfect project.
Just run on old CRIUS board and raspberry (debian stretch). All fine, little strugless with serial comunications and some dependencies in python. I have problem with mw-mavlink service it stuck on "Setting up mw...". Any ideas?

Thank you.

@PepCZ
Copy link
Author

PepCZ commented Aug 2, 2018

Problem is with message 24 4d 3c 00 7a 7a ($M<zz). I get $M!zz as respond

@gregd72002
Copy link
Contributor

gregd72002 commented Aug 9, 2018

Looks like your GPS has no fix or there is issue with recognizing the GPS configuration

mw-mavlink/mw.c

Line 146 in 4aaf11b

while (1) {

message 3c is 122 (MSP_NAV_CONFIG), the service will continue to request MSP_NAV_CONFIG until response received.

@gregd72002
Copy link
Contributor

@PepCZ
Copy link
Author

PepCZ commented Aug 9, 2018

Thanks!!! I was having bad configuration of GPS in my multiwii. For information, can i run it without GPS (comment this part in mw_init() and change definition of TASKS)?

@gregd72002
Copy link
Contributor

gregd72002 commented Aug 10, 2018

The safer option would be to disable GPS on MultiWii side.

Alternatively you can try to change this function and return 0 always. But this is something I have not tried myself.

https://github.com/rpicopter/mw-service/blob/75980513a3c30551247dfbddc0ee77a36f65e0e0/msp.c#L130

@PepCZ
Copy link
Author

PepCZ commented Aug 23, 2018

Sorry for delay.

It works! Thanks!

Now i can connect QGroundControl with raspberry. There is one issue. I am using QGRoundControl v2.8.0 and this happend in mw-mavlink service:

pi@raspberrypi:~/mwml/mw-mavlink $ mw-mavlink -t 192.168.0.53 -p 14550 -l 14551 -d /temp/
Initializing UDP...
UDP initialized on port: 14551
GC address: 192.168.0.53:14550
Setting up mw...
Initializing PARAMS...
Opening config: /usr/local/etc/mw/mw-mavlink.cfg...
Setting up mavlink...
Started.
<- MsgID: 20
Requesting param id: -1, component: 0
Segmentation fault

@gregd72002
Copy link
Contributor

gregd72002 commented Aug 23, 2018

I suspect this issue might be caused by protocol version mismatch.

Are you able to try different QGroundControl version and report back?
https://github.com/mavlink/qgroundcontrol/releases?after=v3.1.1

I'd suggest to try 2.9.7/2.9.7b and 3.0.0 (these are the versions I tried last time).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants