Simple serial control

This forum is dedicated to software development related to MultiWii.
It is not the right place to submit a setup problem.
Software download
Post Reply
jellee
Posts: 3
Joined: Fri May 10, 2013 11:30 am

Simple serial control

Post by jellee »

Hi all,

For my project I would like to control a MultiWii board using the serial port from a self build board.
Now I found the info about the serial protocol: http://www.multiwii.com/forum/viewtopic.php?f=8&t=1516

But I do not understand what I have to send to the MultiWii board to control my flight. I found the message MSP_SET_RAW_RC, but don't know how to use it.
To explain my idea about controlling it: My thought was to send a serial message to move up or move down. A message that contains the throttle to move forward en then a message to move to the left or right.

Is it possible like the way I think?

Thanks!

crashlander
Posts: 506
Joined: Thu May 05, 2011 8:13 am
Location: Slovenia

Re: Simple serial control

Post by crashlander »

Hi,
MSP_SET_RAW_RC does exactly what its name suggests: it sets raw RC values in range from 1000 - 2000 for each channel (curently 8 channels) and that is same the normal RC receiver (35MHz, 2.4GHz...) would do.
So in our case sending (for the main 4 channels) 1000,1500,1500,1500 means zero TH and "centered sticks" (no input) for ROLL, YAW and PITCH...
Actual implementation can be seen directly in MWII source (serial.ino), simple data "cooking" based on that can be seen in my TX implementation https://code.google.com/p/mwii-msp-tx/s ... _BABEL.ino

Regards
Andrej

Post Reply