Skip to main content
. 2024 Feb 7;10:e1759. doi: 10.7717/peerj-cs.1759
Algorithm 5. PAT System:
Pointing and Tracking Algorithm : Takes GPS and IMU data to calculate the required pan and tilt angles, facilitating a direct laser communication pathway between the drone and the ground station.
Input: Drone GPS data, Drone IMU data
Output: Pan & tilt angles for the laser pointing system
1. // Acquire GPS and IMU data from the drone a. DroneGPSData ← GetDroneGPSData()
b. DroneIMUData ← GetDroneIMUData()
2. // Find relative position between drone, transmitter & receiver
a. X=N+hcoscoslatitudecoscoslongitude
b. Y=N+hcoscoslatitudesinsinlongitude
c. Z=1e2N+hsinsinlatitude
Where: N=a1e2sin2latitude