Skip to content

Srujan-D/px4_waypoint_navigation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PX4 drone navigation

A drone can be navigated by specifying waypoints in the .txt file (NED format has been used). The codes given in the /scripts are used to do command and control the drone. I have used Python and ROS Melodic to write the codes.

There are two nodes in /scripts.

The commander node sends commands to to controller using a pub-sub model. 
The commander takes NED coordinates from a waypoints.txt file, which is available in the /scripts, and sends these to the controller.
The controller node subscribes to the imu and gps data, and publishes setpoints on topics which are subscribed by the drone.

Right now, the drone operates at a constant altitude of 2 m, which is defined by 'takeoff_height'. Further Improvements I can think of:

1. The controller can be improved by incorporating a PID for calculating the velocity.
2. There are some redundant lines in controller, wrt the logic used. 
Eg: The drone rotates (yaw angle is calculated in commander script), and then travels linearly in the x direction. Instead, this can be removed by giving both x and y linear velocities.

Releases

No releases published

Packages

No packages published