Skip to content

Commit

Permalink
Updated params for track task
Browse files Browse the repository at this point in the history
  • Loading branch information
mihirbala committed Mar 28, 2024
1 parent c8d49d2 commit 679e7a9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions droneDSL/python/task_defs/TrackTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __init__(self, drone, cloudlet, task_id, trigger_event_queue, task_args):
# ANAFI series.
self.time_prev = None
self.error_prev = [0, 0, 0]
self.yaw_pid_info = {"constants": {"Kp": 1.0, "Ki": 0.005, "Kd": 3.0}, "saved" : {"I": 0.0}}
self.yaw_pid_info = {"constants": {"Kp": 20.0, "Ki": 0.0, "Kd": 0.0}, "saved" : {"I": 0.0}}
self.move_pid_info = {"constants": {"Kp": 10.0, "Ki": 0.0, "Kd": 0.0}, "saved" : {"I": 0.0}}

def create_transition(self):
Expand Down Expand Up @@ -159,7 +159,7 @@ async def pid(self, box):
async def actuate(self, vels):
#await self.drone.PCMD(0, vels[2], vels[0], 0)
logger.info(f"Calling pcmd with {vels}")
await self.drone.PCMD(0, vels[2], vels[0], 0)
await self.drone.PCMD(0, 0, vels[0], 0)
g = await self.drone.getGimbalPitch()
await self.drone.setGimbalPose(0.0, g + float(vels[1]), 0.0)

Expand Down Expand Up @@ -213,3 +213,4 @@ async def run(self):
logger.error(f"[TrackTask]: Exception encountered, {e}, line no {exc_tb.tb_lineno}")

await asyncio.sleep(0.2)
self._exit()

0 comments on commit 679e7a9

Please sign in to comment.