In the little amount of spare time I have I created some code for a teensy 2.0 that reads 8 RC channels and outputs this exact string
This is from a FrSky d8r-II Plus -> 8 wires going into a Teensy 2.0
The 9th wire is actually a serial output from softwareserial.h which gives me a sudo serial port.
This project I have consumes 9 pins 24 total, 1 is consumed by the LED, and the thing is about the size of US 50 cent coin.. Very neat!http://pastebin.com/xL2tF1QT
since I don't comment my code, I'll roughly explain what some of the options do,
The code outputs the serial string to the console and over pin 9 at the same time, this is just to test, it only needs to go over pin 9.
Since the Bab28 has a hardware uart on pins 14/15 I'm going to use that up.
The question I have is the following,
Looking at the samples in the Basic Micro manual what would I need to do to process a serial string that's
8 values of the RC channels 1465,1479,1465,1588,1968,969,971,1467 ... should I add on some special characters at the beginning and or end so that I maintain sync?
Since I have never done anything with having a BAP read a serial string and ... really do something with it I'm not sure where to get started. Since the output from the teensy is going to be read by the bap28 is it just going to be a long nasty string that stores each value into its own variable?
Is my idea stupid and I should be doing it a different way? I just dont know, I need some smarties ... cough probably Kurt to tell me what he would do
Scrap the whole idea of using the Bap and just use a 2nd teensy2.0 for the main 2.1 phoenix code he wrote... or start with one and move to the other... I'm all ears!