projects:robomastertt:start
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| projects:robomastertt:start [2024/12/11 19:46] – [PYTHON] mpr_staff.hsrw | projects:robomastertt:start [2024/12/12 15:20] (current) – [Firewall Exceptions] mpr_staff.hsrw | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| [[https:// | [[https:// | ||
| - | Mind+ YouTube | + | YouTube: |
| [[https:// | [[https:// | ||
| + | ==== Firewall Exceptions ==== | ||
| + | * 8889/udp control | ||
| + | * 8890/udp state | ||
| + | * 11111/udp video | ||
| ==== Update Drone Firmware ==== | ==== Update Drone Firmware ==== | ||
| Line 29: | Line 33: | ||
| ==== PYTHON ==== | ==== PYTHON ==== | ||
| - | * [[ https:// | + | * [[ https:// |
| * [[https:// | * [[https:// | ||
| - | * [[https:// | + | * [[https:// |
| + | * [[https:// | ||
| <code python> | <code python> | ||
| Line 37: | Line 42: | ||
| # Create a swarm with two Tello drones | # Create a swarm with two Tello drones | ||
| - | swarm = TelloSwarm.fromIps([" | + | swarm = TelloSwarm.fromIps([" |
| # Connect to the drones | # Connect to the drones | ||
| Line 43: | Line 48: | ||
| swarm.connect() | swarm.connect() | ||
| - | print(" | + | #print(" |
| - | for i, battery in enumerate(swarm.get_battery(), | + | #for i, battery in enumerate(swarm.get_battery(), |
| - | print(f" | + | # print(f" |
| + | |||
| + | # Change the LED colour of both drones | ||
| + | swarm.parallel(lambda i, tello: tello.send_expansion_command(" | ||
| # Execute commands as a swarm | # Execute commands as a swarm | ||
| Line 52: | Line 60: | ||
| # Rotate only the second drone | # Rotate only the second drone | ||
| - | swarm[1].rotate_clockwise(90) | + | swarm.tellos[1].rotate_clockwise(90) |
| + | |||
| + | # Change the LED colour of the second drone | ||
| + | swarm.tellos[1].send_expansion_command(" | ||
| # Land all drones simultaneously | # Land all drones simultaneously | ||
| Line 59: | Line 70: | ||
| print(" | print(" | ||
| </ | </ | ||
| + | |||
| + | ==== UWB ==== | ||
| + | [[https:// | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | ==== Gesture Control ==== | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | [[https:// | ||
| + | |||
projects/robomastertt/start.1733942802.txt.gz · Last modified: 2024/12/11 19:46 by mpr_staff.hsrw