mavlink / qgroundcontrol

Cross-platform ground control station for drones (Android, iOS, Mac OS, Linux, Windows)
http://qgroundcontrol.io
3.35k stars 3.66k forks source link

Spektrum bind button only supports DSM2 protocol. #375

Closed jean-m-cyr closed 11 years ago

jean-m-cyr commented 11 years ago

Spektrum implements two receiver/transmitter protocols, DSM2 and the more recent DSMX. There is also the original DSM1 protocol but I've never seen it in the wild, and I don't think DSM1 receivers ever supported satellites (PX4IO and Pixhawk only support Specktrum satellite receivers, not master receivers).

To initiate Spektrum pairing from QGC you set the RC_DSM_BIND parameter to:

1 for DSM2 2 for DSMX

Presently the 2.0 preview only supports DSM2.

Not sure how you'd want the QGC user to specify the DSM protocol? Either separate buttons for DSM2 and DSMX, or an added checkbox or drop down selector allowing the DSM2 vs DSMX choices.

LorenzMeier commented 11 years ago

Thanks! I've added radio buttons on the config branch - can you test and provide feedback? Thanks!

jean-m-cyr commented 11 years ago

Lorenz, I've checked this out and it works... well sort of. It works fine the first time you click the button, but not the second time, then sometimes the third time... etc...

Anyhow, I've submitted a pull request to the config branch to fix all of this with a more detailed explanation of the problem.