Hi, apologies if I have missed something obvious - I am working though “Programming Robomaster TT (Tello Talent) with Python” - “Software Install” lesson
Environment: OS - MacBook Air , Apple M2 Sonoma 14.2.1
- Using the Arduino IDE - with extension module connected to USB port - updated firmware - successfully connect and can manipulate the matrix display - the below example displays correctly on the matrix
void setup()
{
Wire.begin(27, 26);
Wire.setClock(400000);
tt_matrix.Init(127);
tt_matrix.SetLEDStatus(RMTT_MATRIX_CS, RMTT_MATRIX_SW, RMTT_MATRIX_LED_ON); // 打开所有LED
}
void loop()
{
tt_matrix.SetAllPWM((uint8_t *)matrix_b3); // 设置数字为蓝色的3
delay(3000);
tt_matrix.SetAllPWM((uint8_t *)matrix_b2); // 设置数字为蓝色的2
delay(1000);
//tt_matrix.SetAllPWM((uint8_t *)matrix_b1); // 设置数字为蓝色的1
//delay(1000);
}
- From the “Software Install” lesson
00_test_installation.py produces the below error
(01_takeoff_land.py and 02_takeoff_land_sert_script.py both run without error)
(venv) pdempsey@pdempsey-LX7XLD49J4 DroneBlocks-Python % python3 00_test_installation.py
DroneBlocks Util Version: 0.2.2
[INFO] tello.py - 122 - Tello instance was initialized. Host: ‘192.168.10.1’. Port: ‘8889’.
[INFO] tello.py - 437 - Send command: ‘command’
[INFO] tello.py - 461 - Response command: ‘ok’
[INFO] tello.py - 437 - Send command: ‘EXT mled g 0000000000p00p0000000000000pp000p00pp00pp000000p0p0000p000pppp00’
[WARNING] tello.py - 447 - Aborting command ‘EXT mled g 0000000000p00p0000000000000pp000p00pp00pp000000p0p0000p000pppp00’. Did not receive a response after 7 seconds
[INFO] tello.py - 437 - Send command: ‘EXT mled g 0000000000p00p0000000000000pp000p00pp00pp000000p0p0000p000pppp00’
[WARNING] tello.py - 447 - Aborting command ‘EXT mled g 0000000000p00p0000000000000pp000p00pp00pp000000p0p0000p000pppp00’. Did not receive a response after 7 seconds
[INFO] tello.py - 437 - Send command: ‘EXT mled g 0000000000p00p0000000000000pp000p00pp00pp000000p0p0000p000pppp00’
[WARNING] tello.py - 447 - Aborting command ‘EXT mled g 0000000000p00p0000000000000pp000p00pp00pp000000p0p0000p000pppp00’. Did not receive a response after 7 seconds
Traceback (most recent call last):
File “/Users/pdempsey/Desktop/Computing/Tello Drone/DroneBlocks-Python/00_test_installation.py”, line 18, in
db_tello.display_smile()
File “/Users/pdempsey/Desktop/Computing/Tello Drone/DroneBlocks-Python/venv/lib/python3.9/site-packages/droneblocks/DroneBlocksTello.py”, line 160, in display_smile
return self._display_pattern(smile)
File “/Users/pdempsey/Desktop/Computing/Tello Drone/DroneBlocks-Python/venv/lib/python3.9/site-packages/droneblocks/DroneBlocksTello.py”, line 81, in _display_pattern
return self.send_expansion_command(f"mled g {flattened_matrix}")
File “/Users/pdempsey/Desktop/Computing/Tello Drone/DroneBlocks-Python/venv/lib/python3.9/site-packages/droneblocks/DroneBlocksTello.py”, line 47, in send_expansion_command
return super().send_expansion_command(expansion_cmd)
File “/Users/pdempsey/Desktop/Computing/Tello Drone/DroneBlocks-Python/venv/lib/python3.9/site-packages/djitellopy/enforce_types.py”, line 54, in wrapper
return func(*args, **kwargs)
File “/Users/pdempsey/Desktop/Computing/Tello Drone/DroneBlocks-Python/venv/lib/python3.9/site-packages/djitellopy/tello.py”, line 905, in send_expansion_command
self.send_control_command(cmd)
File “/Users/pdempsey/Desktop/Computing/Tello Drone/DroneBlocks-Python/venv/lib/python3.9/site-packages/djitellopy/enforce_types.py”, line 54, in wrapper
return func(*args, **kwargs)
File “/Users/pdempsey/Desktop/Computing/Tello Drone/DroneBlocks-Python/venv/lib/python3.9/site-packages/djitellopy/tello.py”, line 486, in send_control_command
self.raise_result_error(command, response)
File “/Users/pdempsey/Desktop/Computing/Tello Drone/DroneBlocks-Python/venv/lib/python3.9/site-packages/djitellopy/enforce_types.py”, line 54, in wrapper
return func(*args, **kwargs)
File “/Users/pdempsey/Desktop/Computing/Tello Drone/DroneBlocks-Python/venv/lib/python3.9/site-packages/djitellopy/tello.py”, line 528, in raise_result_error
raise Exception("Command '{}' was unsuccessful for {} tries. Latest response:\t'{}'"
Exception: Command ‘EXT mled g 0000000000p00p0000000000000pp000p00pp00pp000000p0p0000p000pppp00’ was unsuccessful for 4 tries. Latest response: ‘Aborting command ‘EXT mled g 0000000000p00p0000000000000pp000p00pp00pp000000p0p0000p000pppp00’. Did not receive a response after 7 seconds’
(venv) pdempsey@pdempsey-LX7XLD49J4 DroneBlocks-Python %
- Using Packet Sender with extension module connected to the drone - command runs ok, no response to EXT mled
Best Regards.