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
jakeerp
Posts: 1
Joined: Wed Sep 09, 2015 1:12 pm

Re: New Multiwii Serial Protocol

Post by jakeerp »

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!

cMelkor
Posts: 2
Joined: Tue Sep 29, 2015 7:57 pm

Re: New Multiwii Serial Protocol

Post by cMelkor »

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.

User avatar
stronnag
Posts: 114
Joined: Thu Oct 24, 2013 9:32 pm
Location: New Forest, England
Contact:

Re: New Multiwii Serial Protocol

Post by stronnag »

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 .

cMelkor
Posts: 2
Joined: Tue Sep 29, 2015 7:57 pm

Re: New Multiwii Serial Protocol

Post by cMelkor »

ty stronnag :D!

xcvbz0
Posts: 1
Joined: Wed Dec 16, 2015 2:24 am

Re: New Multiwii Serial Protocol

Post by xcvbz0 »

hello... how can I clear waypoints with MSP? I can't find any suggestion :(

User avatar
stronnag
Posts: 114
Joined: Thu Oct 24, 2013 9:32 pm
Location: New Forest, England
Contact:

Re: New Multiwii Serial Protocol

Post by stronnag »

See the document linked three posts up (under the section Uploading).

User avatar
alduxvm
Posts: 40
Joined: Thu Apr 25, 2013 2:25 pm
Contact:

Re: New Multiwii Serial Protocol

Post by alduxvm »

is it possible to use MSP via i2c??

like sending and getting commands via i2c instead of the usb or serial cable?

User avatar
Hamburger
Posts: 2557
Joined: Tue Mar 01, 2011 2:14 pm
Location: air
Contact:

Re: New Multiwii Serial Protocol

Post by Hamburger »

no, not yet.

User avatar
Hamburger
Posts: 2557
Joined: Tue Mar 01, 2011 2:14 pm
Location: air
Contact:

Re: New Multiwii Serial Protocol

Post by Hamburger »

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?

snow-man-01
Posts: 18
Joined: Mon Jul 18, 2016 9:50 am

Re: New Multiwii Serial Protocol

Post by snow-man-01 »

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....?

Post Reply