You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write code to take in the the skylink position data of the aircraft and send commands using the SDK to the motors.
Based on the hardware, a "position" approach for the vertical (altitude) and "velocity" approach for the horizontal (azimuth) would be best.
For the vertical: Based on the GPS position + altitude of the tracker and the GPS position + altitude of the aircraft, calculate the vertical difference and the angle the antenna needs to be at, and send the "position" command to set the motors to that position. Keep in mind there are limits to how far the antenna can move up and down, you will need to check for this.
For the horizontal: The motor will need to be in "velocity" mode, so you will need to write a small P controller to set a velocity based on the known direction of the antenna tracker and the location of the aircraft. The P controller will take the position of the motor as feedback and stop/slow the velocity as we approach the target destination. Keep in mind that 1 rotation on the motor is NOT 1 rotation on the antenna. Both this and P should be adjustable settings.
The text was updated successfully, but these errors were encountered:
Write code to take in the the skylink position data of the aircraft and send commands using the SDK to the motors.
Based on the hardware, a "position" approach for the vertical (altitude) and "velocity" approach for the horizontal (azimuth) would be best.
For the vertical: Based on the GPS position + altitude of the tracker and the GPS position + altitude of the aircraft, calculate the vertical difference and the angle the antenna needs to be at, and send the "position" command to set the motors to that position. Keep in mind there are limits to how far the antenna can move up and down, you will need to check for this.
For the horizontal: The motor will need to be in "velocity" mode, so you will need to write a small
P
controller to set a velocity based on the known direction of the antenna tracker and the location of the aircraft. TheP
controller will take the position of the motor as feedback and stop/slow the velocity as we approach the target destination. Keep in mind that 1 rotation on the motor is NOT 1 rotation on the antenna. Both this and P should be adjustable settings.The text was updated successfully, but these errors were encountered: