Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion examples/step-by-step/sbs_motion_commander.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ def take_off_simple(scf):

def log_pos_callback(timestamp, data, logconf):
print(data)
global position_estimate
position_estimate[0] = data['stateEstimate.x']
position_estimate[1] = data['stateEstimate.y']

Expand Down
1 change: 0 additions & 1 deletion examples/swarm/asynchronizedSwarm.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ def arm(scf):


def position_callback(uri, data):
global pos1, pos2
if uri == URI1:
pos1[0] = data['stateEstimate.x']
pos1[1] = data['stateEstimate.y']
Expand Down
3 changes: 1 addition & 2 deletions examples/swarm/leader-follower.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@ def pos_to_vel(x1, y1, x2, y2, dist):


def position_callback(uri, data):
global yaw1
global x1, y1, z1, x2, y2, z2, d
global d
if uri == URI1: # Follower
x1.append(data['stateEstimate.x'])
y1.append(data['stateEstimate.y'])
Expand Down