- Posts: 3
V949 interface to Arduino/AVR
- deepsheet
- Topic Author
- Offline
Second question is about the protocol, is it available somewhere? I don't own a logic sniffer so I can't poke around myself. Sample code will be extremely helpful!
(I also posted this thread at rcgroups.com, but I feel this forum is more appropriate. I found this post which is exactly what I need, but for another model)
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
All of our code is available on bitbucket (look in the protocol dir)
bitbucket.org/PhracturedBlue/deviation
But it will require some work to port to AVR. This work has already been done by many others though. check out the 9x/turnigy thread on RCGroups:
www.rcgroups.com/forums/showthread.php?t=1626362
There are many others as well.
Please Log in or Create an account to join the conversation.
- deepsheet
- Topic Author
- Offline
- Posts: 3
I thought it was compatible because many sellers list them as the same. I guess its a search trick. I've ordered a couple of A7105's and they should arrive in about a month.
Thanks for the link, seems that it has the answers I'm looking for.
Keep it up!
Please Log in or Create an account to join the conversation.
- SadSack
- Offline
- Posts: 317
Please Log in or Create an account to join the conversation.
- deepsheet
- Topic Author
- Offline
- Posts: 3
The project is an (RX) receiver, I'm looking into making a TX. It's not very different, though.
Another quick question:
According to the code there are 21 packets (21 bytes). This is how they are unpacked:
for (i=0;i<8;i++){
word_temp=(packet[5+(2*i)]+256*packet[6+(2*i)]);
if ((word_temp>900) && (word_temp<2200))
Servo_data=word_temp;
}
rcData[ROLL] = Servo_data[0]; //aileron
rcData[PITCH] = Servo_data[1]; //elevator
rcData[THROTTLE] = Servo_data[2]; //throtle
rcData[YAW] = Servo_data[3]; //rudder
rcData[AUX1] = Servo_data[4]; //aux1
rcData[AUX2] = Servo_data[5]; //aux2
rcData[AUX3] = Servo_data[6]; //aux3
rcData[AUX4] = Servo_data[7]; //aux4
}
I'm not sure what the code in bold does. Does anyone have any clues? Is it "encrypted" in some way? Also, why does it happen in a loop?
Thanks for all your help! I truly appreciate it.
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
Please Log in or Create an account to join the conversation.
- SadSack
- Offline
- Posts: 317
And thread openrcforums.com/forum/viewtopic.php?f=5&t=2672
Not used any of this but have read it
Please Log in or Create an account to join the conversation.
- Home
- Forum
- General
- General Discussions
- V949 interface to Arduino/AVR