Crazy head with Crius se (solved)
Posted: Mon Jul 23, 2012 2:26 pm
Hello allbody
I bought a used drone with CRIUS SE card, I loaded Multiwii 2.1 and I am testing with Multiwii_conf 2.1.
I can see that all sensor values look OK : all 0 except ACC Z to 255-256 and MAG YAW which hesitates between -1 and 1. But the HEAD varies quickly and randomly from -180 to 180. I calibrated ACC and MAG several times, with the same result. With the previous version 2.0, it was the same behaviour.
I took a look in the code to see how the heading is calculated, it is 5 or 6 lines of code and I saw nothing related to this crazy behavior. Cound someone explain what is happening ? I can't understand that the head is varying so much while sensor outputs are so quiet.
I have another question : I am writing a python module that handles the new Multiwii Serial Protocol (MSP). With the drone connected to my desktop computer, it works as a charm. When I connect the drone on a BeagleBone computer, the serial connection does not work: when I send something to the drone, it answers by a long red led spot, then two seconds of silence, then 3 quick red led blink.
On both computers, serial ports are configured exactly the same way, with same drivers.
Could someone explain what the drone is trying to say by blinking the red led such a way ?
Thanks for the answers.
I bought a used drone with CRIUS SE card, I loaded Multiwii 2.1 and I am testing with Multiwii_conf 2.1.
I can see that all sensor values look OK : all 0 except ACC Z to 255-256 and MAG YAW which hesitates between -1 and 1. But the HEAD varies quickly and randomly from -180 to 180. I calibrated ACC and MAG several times, with the same result. With the previous version 2.0, it was the same behaviour.
I took a look in the code to see how the heading is calculated, it is 5 or 6 lines of code and I saw nothing related to this crazy behavior. Cound someone explain what is happening ? I can't understand that the head is varying so much while sensor outputs are so quiet.
I have another question : I am writing a python module that handles the new Multiwii Serial Protocol (MSP). With the drone connected to my desktop computer, it works as a charm. When I connect the drone on a BeagleBone computer, the serial connection does not work: when I send something to the drone, it answers by a long red led spot, then two seconds of silence, then 3 quick red led blink.
On both computers, serial ports are configured exactly the same way, with same drivers.
Could someone explain what the drone is trying to say by blinking the red led such a way ?
Thanks for the answers.