There's an error in Python grammar

Before creating a new thread please refer to the documentation for Navio2 and Navio+.

In case you are creating a thread about an issue please specify the appropriate sub-category first!

Hello, professors.
When I run Python grammar, the error appears like the picture.

The Python file is the same as the attachment below.
The contents of the error message are as shown in the picture.

Navio2 Raspberry pi4 is controlled through the keyboard.
We need to communicate via udp or tcp, but it’s connected by udp.


The goal is to compile and execute the keyboard control function on Raspberry Pi 4, and control it with the keyboard through the mission planner.

What should I do to catch an error like the picture? Please help me.

how_do_drones_work/02_control_with_arrow_keys.py at master · tizianofiorenzani/how_do_drones_work · GitHub <---- python funtion

A post was merged into an existing topic: Please tell me how to control rpi4 and navi02 drone through keyboard