There must be some standard software for sending a numeric value serially.
I don't know what the transmitter is sending, or what format is used internally
in the flight controller.
The flight controller sends out a continuous pwm/servo? stream with variations.
How do I do that in a more digital manner, process it, then create an output servo or motor
signal?
It probably is not a good idea to create a servo signal as an input., then try to figure out what number it represents. Ideally, you can send 8-bit askii codes for numbers, and use reserved askii
characters as delimiters.- that was how we used to do it, anyway.- how is this done nowdays?
what is this unicode thing?- is it used in arduino?
If you want other than integers, you have to indicate what you are sending, and reconstitute the
scientific notation value based on an agreed standard.- that doesn't apply here.
Unsigned integers seems the obvious choice, and just use the askii code for the integer in a decimal fashion.
What range is natural? 0-255 ? that seems to be fine enough for controlling motors or servos.
I can have a look at the Multiwii code, I suppose, but a shortcut to examples using
an integer-stream as I have described would be useful.
If you are getting a stream like this, you have to process and pass it along very quickly,
or you need a pipe-like protocol, so that you have to read each value explicitly.
a back-and forth read-write system could be required , as you can't be expected to dispose of data as fast as it can arrive.
then, if you are going to invoke a handshake protocol, you can add headers to the data, and send all your streams down the same pipe- and have a distribution module to send the data to the correct processing instance, which has its own defined output channel-ie a mixer, or a servo output. Someone will have done this. How do I find example code?
This is similar to how things like s-bus work.- master-slave hookup??
one-to-one, anyway.
I will have a look for the Mahona AHRS module- I think that is what he is talking about?