Skip to content

Commit

Permalink
initialise variables to zero
Browse files Browse the repository at this point in the history
  • Loading branch information
Williangalvani committed Jul 18, 2024
1 parent ce1b939 commit 2e2390c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dvl-a50/dvl.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,8 @@ def handle_velocity(self, data: Dict[str, Any]) -> None:
if self.rangefinder and alt > 0.05:
self.mav.send_rangefinder(alt)

position_delta = [0, 0, 0]
attitude_delta = [0, 0, 0]
if self.should_send == MessageType.POSITION_DELTA:
dRoll, dPitch, dYaw = [
current_angle - last_angle
Expand Down

0 comments on commit 2e2390c

Please sign in to comment.