8 Commits

Autor SHA1 Mensagem Data
Sameer Parekh 25ad4863a3 Merge branch 'release/wired-launch' 2013-03-20 10:17:23 -04:00
Sameer Parekh 5412df1d9f update readme for release 2013-03-20 10:17:14 -04:00
Sameer Parekh 1f7789e68c Merge branch 'develop' of https://github.com/FalkorSystems/falkor_ardrone into develop 2013-03-20 10:16:08 -04:00
PIMA 91b8b80735 make sure if the point is lost we pick that up 2013-03-20 07:03:32 -07:00
Sameer Parekh 404e6f1be9 increase ypid and tighten up yaw goal 2013-03-18 11:49:20 -04:00
Sameer Parekh 83f663ad14 turn off realtime navdata 2013-03-18 11:45:22 -04:00
Sameer Parekh 0c05235a53 add ema to the point that we found 2013-03-13 17:46:29 -04:00
Sameer Parekh e72cf4828b increase the P term for yaw 2013-03-13 17:37:53 -04:00
3 arquivos alterados com 21 adições e 6 exclusões
+1
Ver Arquivo
@@ -6,6 +6,7 @@
### Updates
- *March 20, 2013*: Release related to company launch/Wired article
- *October 23, 2012*: Create this seperate package
## Usage
+1 -1
Ver Arquivo
@@ -28,7 +28,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->
<node name="ardrone_driver" pkg="ardrone_autonomy" type="ardrone_driver" >
<param name="realtime_navdata" value="true" />
<!-- <param name="realtime_navdata" value="true" /> -->
</node>
<node name="ardrone_tracker" pkg="falkor_ardrone" type="ardrone_tracker.py" output="screen" >
+19 -5
Ver Arquivo
@@ -71,12 +71,16 @@ class ArdroneFollow:
self.linearXlimit = 1.0
self.linearZlimit = 2.0
self.xPid = pid.Pid( 0.020, 0.0, 0.0, self.angularZlimit )
self.yPid = pid.Pid( 0.020, 0.0, 0.0, self.linearZlimit )
# Increasing the P term for yaw
self.xPid = pid.Pid( 0.080, 0.0, 0.0, self.angularZlimit )
self.yPid = pid.Pid( 0.050, 0.0, 0.0, self.linearZlimit )
self.zPid = pid.Pid( 0.050, 0.0, 0.0, self.linearXlimit )
self.xPid.setPointMin = 40
self.xPid.setPointMax = 60
# alpha for the ema filter on the found point
self.alpha = 0.5
self.xPid.setPointMin = 45
self.xPid.setPointMax = 55
self.yPid.setPointMin = 40
self.yPid.setPointMax = 60
@@ -207,7 +211,17 @@ class ArdroneFollow:
self.reset_pub.publish( Empty() )
def found_point_cb( self, data ):
self.found_point = data
if data.z != -1.0:
if self.found_point.z == -1.0:
self.found_point = data
else:
# update the ema found_point, if we didn't just re-acquire
self.found_point.x = self.found_point.x * self.alpha + data.x * ( 1.0 - self.alpha )
self.found_point.y = self.found_point.y * self.alpha + data.y * ( 1.0 - self.alpha )
self.found_point.z = self.found_point.z * self.alpha + data.z * ( 1.0 - self.alpha )
else:
self.found_point = data
self.found_time = rospy.Time.now()
def hover( self ):