Reading the RC Channels

Right, with the sensors (nearly) sorted out, I hope, I’m moving on to the next bit of the programming: the input from the RC receiver – the little board that receives the radio signal from the transmitter.

Here’s mine, a cheap one from HobbyKing, where most of my other stuff comes from too:

HobbyKing 6Ch Receiver
HobbyKing 6Ch Receiver

There are 6 channels of information: Throttle, Yaw (Rudder), Pitch (Elevator), Roll (Aileron), and 2 knobs that act as auxiliary channels. The receiver gets these from 2.4Ghz radio waves sent by the transmitter, and converts them into digital PWM signals to send on the flight controller via wires.
(continued)

Read More

RTIMULib Sensor Fusion Library

Right as mentioned in my last post I have decided not to stick to Polulu’s quite unreliable Arduino sketch that I assembled into a library, because of the significant drift in the results.

Rather, I’ve now (for the time being) settled on richards-tech’s RTIMULib-Arduino library which is a very complex but highly functional library designed specifically for use with the IMU board I’m using (and some others). What this means for me is that I can include the library in my sketch and not have to worry about the inner workings of it for now – although I’d like to produce my own algorithm at some point in the future.
(continued)

Read More