)
# 设置按下的对应的IO脚
uart1 = UART(1, baudrate=1000000, tx=18, rx=23)
# 飞行控制的按钮,就是摁下按钮开始进入command模式
# 使用的是...)
# 设置一个LED灯为呼吸模式,第一个参数为频率
led.breath(1, 255, 255, 255)
led.blink(1, 255, 0, 0, 0, 255, 0)
# 设置两个LED的闪烁...# 后面的两个参数是跳跃点
protocol.sendTelloCtrlMsg("setyaw "+str(0)+" "+"m-1")
# 就是飞机在挑战卡上面旋转多少度
protocol.getTelloStatus...led.breath(1, 255, 255, 255)
led.blink(1, 255, 0, 0, 0, 255, 0)
# 设置两个LED的闪烁
led.stop()
# 特效关闭的方法
这段是控制...# 后面的两个参数是跳跃点
protocol.sendTelloCtrlMsg("setyaw "+str(0)+" "+"m-1")
# 就是飞机在挑战卡上面旋转多少度
这些是具体的控制命令
这两个地方需要进行测试