Implement classic GVF for rotorcrafts (#3327)

* [modules] implemented GVF for rotorcrafts

* Note about Crazyradio communication with Crazyflies
This commit is contained in:
Angel-HF
2024-07-12 17:44:01 +02:00
committed by GitHub
parent 72fe3fb95a
commit e089fd48f7
8 changed files with 374 additions and 17 deletions
@@ -5,6 +5,11 @@ with support of PPRZLINK messages
Requires 'pip3 install cflib'
IMPORTANT:
To make this script work, you need to have the Crazyflie firmware 2019.09.
Some other firmwares may work, but the 2019.09 is the one that has been tested.
2024 firmwares onwards DO NOT work for sure.
As the ESB protocol works using PTX and PRX (Primary Transmitter/Reciever)
modes. Thus, data is only recieved as a response to a sent packet.
So, we need to constantly poll the receivers for bidirectional communication.
@@ -34,12 +39,10 @@ import pprzlink.messages_xml_map as messages_xml_map
CRTP_PORT_PPRZLINK = 9
# Only output errors from the logging framework
#logging.basicConfig(level=logging.DEBUG)
logging.basicConfig(level=logging.ERROR)
class RadioBridge:
def __init__(self, link_uri, msg_class='telemetry', verbose=False):
""" Initialize and run with the specified link_uri """
@@ -173,5 +176,4 @@ if __name__ == '__main__':
bridge.shutdown()
time.sleep(1)
sys.exit()
sys.exit()