Trim Parameter Packets
Posted: Tue Sep 08, 2015 4:14 pm
My plan is to set the trim parameters on my CF2 from an iPhone app. I've seen someone set the altHold parameter (packet shown below) but I don't understand how to generate the packets to send trim parameter updates.
I tried searching the forum and google but I could not find out how a trim parameter packet looks like.
Code: Select all
struct __attribute__((packed)) {
uint8_t header;
uint8_t ident;
uint8_t val;
} altHoldPacket;
NSData *myData;
altHoldPacket.header = ((0x02 & 0x0f) << 4 | 3 << 2 |(2 & 0x03));
altHoldPacket.ident = 11;
altHoldPacket.val = 1;