Bonjour,
Alors no soucy pour faire fonctionner la RASPI3 en réception avec l'ATOM connectée en USB.
Maintenant je souhaite faire la m^me chose mais en utilisant la sortie Main_UART de l'ATOM et l'entrée uart de la RASPI.
J'ai tout simplement changé l'écoute du programme python (coté RASPI) sur le port /dev/ttyAMA0.
Voici l'affichage sur console :
pi@raspberrypi:~/librepilot $ python ./python/examples/example_CC3D_Direct_Uart.py
Opening Port "/dev/ttyAMA0"
Creating UavTalk
Starting ObjectManager
Starting UavTalk
Starting ConnectionManager
WARNING:root:Rec UNKNOWN Obj d7e0d964
WARNING:root:Rec UNKNOWN Obj d7e0d964
WARNING:root:Rec UNKNOWN Obj d7e0d964
WARNING:root:Rec UNKNOWN Obj d7e0d964
Connecting... Connected
Getting all Data
WARNING:root:Rec UNKNOWN Obj d7e0d964
WARNING:root:Rec UNKNOWN Obj d7e0d964
WARNING:root:Rec UNKNOWN Obj d7e0d964
WARNING:root:Rec UNKNOWN Obj 20e6caac
WARNING:root:Rec UNKNOWN Obj d7e0d964
WARNING:root:Rec UNKNOWN Obj d7e0d964
WARNING:root:Rec UNKNOWN Obj d7e0d964
ERROR:root:INVALID Packet Size. Should be: 11 got 8936 for obj ReceiverStatus
WARNING:root:Rec UNKNOWN Obj d7e0d964
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/local/lib/python2.7/dist-packages/librepilot/uavtalk/uavtalk.py", line 139, in run
self._consumeByte(rx)
File "/usr/local/lib/python2.7/dist-packages/librepilot/uavtalk/uavtalk.py", line 172, in _consumeByte
" got "+str(self.rxSize) + " for obj "+str(self.obj.name))
AttributeError: 'NoneType' object has no attribute 'getSerialisedSize'
Request fast periodic updates for AttitudeState
Install Observer for AttitudeState updates
^C
Stopping UavTalk
Tout se passe bien jusqu'au "ConnectionManager" !!!
+ loin le "Connecting... Connected
Getting all Data" passe.
Blablabla
Puis ca repart correctement
"Request fast periodic updates for AttitudeState
Install Observer for AttitudeState updates"
Mais aucun message en réception, alors que je les voient bien passer sur mon oscillo.
Please HELP