Skip to content
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Changes for headless support
  • Loading branch information
Tuxliri committed Jan 3, 2025
commit bb215b58edb532eee825614c602f6cccadc91bc7
6 changes: 3 additions & 3 deletions examples/range_altitude_control/range_altitude_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,13 @@ def altitude_controller(target_altitude : float):
print("Closing vehicle object")
vehicle.close()

# Plot the error data
# Save the error data plot
time_data = [i / PID_SAMPLE_RATE for i in range(len(error_data))]
plt.plot(time_data, error_data)
plt.xlabel('Time (s)')
plt.ylabel('Error')
plt.ylabel('Error [m]')
plt.title('Altitude Control Error')
plt.show()
plt.savefig('altitude_control_error.png')


def send_attitude_target(roll_angle = 0.0, pitch_angle = 0.0,
Expand Down