Syntax Fixes
This commit is contained in:
@@ -46,10 +46,10 @@ python scripts/run_ardupilot.py --pattern hover
|
||||
### Basic Usage
|
||||
|
||||
```python
|
||||
from src.drone_controller import SimpleDroneController
|
||||
from src.drone_controller import DroneController
|
||||
|
||||
# Create and connect
|
||||
drone = SimpleDroneController()
|
||||
drone = DroneController()
|
||||
if not drone.connect():
|
||||
print("Connection failed")
|
||||
exit(1)
|
||||
@@ -66,12 +66,12 @@ drone.fly_square(size=5, altitude=5)
|
||||
drone.land()
|
||||
```
|
||||
|
||||
### Class: SimpleDroneController
|
||||
### Class: DroneController
|
||||
|
||||
#### Connection
|
||||
|
||||
```python
|
||||
drone = SimpleDroneController(connection_string="tcp:127.0.0.1:5760")
|
||||
drone = DroneController(connection_string="tcp:127.0.0.1:5760")
|
||||
drone.connect(timeout=30) # Returns True/False
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user