New Multiwii Serial Protocol

This forum is dedicated to software development related to MultiWii.
It is not the right place to submit a setup problem.
Software download

Re: New Multiwii Serial Protocol

Postby jakeerp » Wed Sep 09, 2015 2:54 pm

Question:

I would like to access a snapshot of the current accelerometer/gyro readings via the Linux CLI. How would I do that over a serial connection from the Linux CLI?

I've read through this thread and others, as well as the first post, but I still am not sure how I would go about accessing that data from the linux CLI (And this may not be due to a lack of info, just my lack of understanding).

I have a MWC 328.

Thanks!
jakeerp
 
Posts: 1
Joined: Wed Sep 09, 2015 1:12 pm

Re: New Multiwii Serial Protocol

Postby cMelkor » Tue Sep 29, 2015 8:05 pm

Hello. I use mw2.3. I'm working with MSP_WP and MSP_SET_WP script but when I send lat,lon,AltHold,etc is not reading correctly in mw-wingui. When I use MSP_WP I recibe the same thing than I send. Is there some conversion to get and set lat,lon,AltHold correctly?

Edit: I'm using a SerialCommunicator.cpp between Beaglebone black and MultiWii.
cMelkor
 
Posts: 2
Joined: Tue Sep 29, 2015 7:57 pm

Re: New Multiwii Serial Protocol

Postby stronnag » Tue Sep 29, 2015 8:13 pm

The MSP_WP / MSP_SET_WP data structures changed from 2.3 for 2.3-nav and 2.4. You need to use the correct firmware and message structure (and 2.3-nav or 2.4 for Wingui). The 2.3-nav/2.4 messages are documented at https://docs.google.com/document/d/16Zf ... sp=sharing .
User avatar
stronnag
 
Posts: 114
Joined: Thu Oct 24, 2013 9:32 pm
Location: New Forest, England

Re: New Multiwii Serial Protocol

Postby cMelkor » Tue Sep 29, 2015 8:19 pm

ty stronnag :D!
cMelkor
 
Posts: 2
Joined: Tue Sep 29, 2015 7:57 pm

Re: New Multiwii Serial Protocol

Postby xcvbz0 » Wed Dec 16, 2015 2:29 am

hello... how can I clear waypoints with MSP? I can't find any suggestion :(
xcvbz0
 
Posts: 1
Joined: Wed Dec 16, 2015 2:24 am

Re: New Multiwii Serial Protocol

Postby stronnag » Wed Dec 16, 2015 6:03 pm

See the document linked three posts up (under the section Uploading).
User avatar
stronnag
 
Posts: 114
Joined: Thu Oct 24, 2013 9:32 pm
Location: New Forest, England

Re: New Multiwii Serial Protocol

Postby alduxvm » Wed Jan 13, 2016 1:21 pm

is it possible to use MSP via i2c??

like sending and getting commands via i2c instead of the usb or serial cable?
User avatar
alduxvm
 
Posts: 40
Joined: Thu Apr 25, 2013 2:25 pm

Re: New Multiwii Serial Protocol

Postby Hamburger » Thu Jan 14, 2016 3:10 pm

no, not yet.
User avatar
Hamburger
 
Posts: 2557
Joined: Tue Mar 01, 2011 2:14 pm
Location: air

Re: New Multiwii Serial Protocol

Postby Hamburger » Fri May 06, 2016 7:03 pm

I need a change to MSProtocol in order to support 6S HV lipos. Todays HV lipo cells support 4.35V, soon to come 4.55V. For 6S, this equals 27.3V.
At the moment, we use uint8_t for storage, which is no longer sufficient.
Affected structs are
Code: Select all
typedef struct {
  uint8_t  vbat;               // battery voltage in 0.1V steps
...
} analog_t;


and
Code: Select all
#ifdef VBAT
    uint8_t vbatscale;
    uint8_t vbatlevel_warn1;
    uint8_t vbatlevel_warn2;
    uint8_t vbatlevel_crit;
  #endif
 ...
} conf_t;


Any suggestions how to proceed to stay compatible?
User avatar
Hamburger
 
Posts: 2557
Joined: Tue Mar 01, 2011 2:14 pm
Location: air

Re: New Multiwii Serial Protocol

Postby snow-man-01 » Wed Jul 27, 2016 4:58 pm

Hello,

I want to change roll, pitch, yaw and throttle manually (without the Joystick). Which parameter must I change? Because I want to implement an anonymous flight, where I set the signals for the motion. Can anyone tell me which parameter I can change to change roll, pitch....?
snow-man-01
 
Posts: 18
Joined: Mon Jul 18, 2016 9:50 am

Previous

Return to Software development

Who is online

Users browsing this forum: No registered users and 9 guests

cron