multiwii / baseflight

32 bit fork of the MultiWii RC flight controller firmware
499 stars 356 forks source link

MSP not answering to '105' petition #295

Closed alduxvm closed 8 years ago

alduxvm commented 9 years ago

Using a naze32...

When asking attitude (108) with my python library (https://github.com/alduxvm/pyMultiWii) it works with no issue, example:

{'timestamp': '1440774313.71', 'elapsed': 0.004, 'angx': 1.0, 'angy': -0.2, 'heading': 314.0}
{'timestamp': '1440774313.71', 'elapsed': 0.006, 'angx': 1.0, 'angy': -0.2, 'heading': 314.0}
{'timestamp': '1440774313.72', 'elapsed': 0.004, 'angx': 1.0, 'angy': -0.2, 'heading': 314.0}
{'timestamp': '1440774313.72', 'elapsed': 0.006, 'angx': 1.0, 'angy': -0.2, 'heading': 314.0}
{'timestamp': '1440774313.73', 'elapsed': 0.004, 'angx': 0.9, 'angy': -0.2, 'heading': 314.0}
{'timestamp': '1440774313.73', 'elapsed': 0.004, 'angx': 0.9, 'angy': -0.2, 'heading': 314.0}
{'timestamp': '1440774313.74', 'elapsed': 0.006, 'angx': 0.9, 'angy': -0.2, 'heading': 314.0}
{'timestamp': '1440774313.74', 'elapsed': 0.003, 'angx': 0.9, 'angy': -0.2, 'heading': 314.0}
{'timestamp': '1440774313.74', 'elapsed': 0.004, 'angx': 0.9, 'angy': -0.2, 'heading': 314.0}
{'timestamp': '1440774313.75', 'elapsed': 0.006, 'angx': 1.0, 'angy': -0.2, 'heading': 314.0}
{'timestamp': '1440774313.75', 'elapsed': 0.004, 'angx': 1.0, 'angy': -0.2, 'heading': 314.0}

When asking rc channels (105) I got no response (in my case is zeros because I initialise the data in that way):

{'throttle': 0, 'timestamp': 0, 'yaw': 0, 'elapsed': 0, 'pitch': 0, 'roll': 0}
{'throttle': 0, 'timestamp': 0, 'yaw': 0, 'elapsed': 0, 'pitch': 0, 'roll': 0}
{'throttle': 0, 'timestamp': 0, 'yaw': 0, 'elapsed': 0, 'pitch': 0, 'roll': 0}
{'throttle': 0, 'timestamp': 0, 'yaw': 0, 'elapsed': 0, 'pitch': 0, 'roll': 0}
{'throttle': 0, 'timestamp': 0, 'yaw': 0, 'elapsed': 0, 'pitch': 0, 'roll': 0}
{'throttle': 0, 'timestamp': 0, 'yaw': 0, 'elapsed': 0, 'pitch': 0, 'roll': 0}
{'throttle': 0, 'timestamp': 0, 'yaw': 0, 'elapsed': 0, 'pitch': 0, 'roll': 0}
{'throttle': 0, 'timestamp': 0, 'yaw': 0, 'elapsed': 0, 'pitch': 0, 'roll': 0}
{'throttle': 0, 'timestamp': 0, 'yaw': 0, 'elapsed': 0, 'pitch': 0, 'roll': 0}

With 8bit multwii and a AIO v2 board this works... in the naze32 it does not.

Also, is there a way to make the naze32 listen to "MSP_SET_RAW_RC" and standard RC at the same time??

thanks!

alduxvm commented 9 years ago

Don't mind me, it was a problem with my board... a different board worked. strange error...

cheers!