This repository has been archived by the owner on Feb 21, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #196: Improved introrob_py to better control over real-Ar.Drone
- Deleted color filter - Added velocities restrictions to real-Ar.Drone - Added the reset button - Code refactorization
- Loading branch information
Showing
12 changed files
with
104 additions
and
1,117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,16 @@ | ||
from sensors import sensor | ||
import math | ||
import jderobot | ||
import cv2 | ||
import numpy as np | ||
|
||
|
||
class MyAlgorithm(): | ||
|
||
def __init__(self, sensor): | ||
self.sensor = sensor | ||
self.one=True | ||
|
||
def execute(self): | ||
# Add your code here | ||
tmp = self.sensor.getNavdata() | ||
if tmp!= None: | ||
if tmp is not None: | ||
print "State: " +str(tmp.state) | ||
print "Altitude: " +str(tmp.altd) | ||
print "Vehicle: " +str(tmp.vehicle) | ||
print "Battery %: " +str(tmp.batteryPercent) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.