Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Backend Antenna Pointing Logic #2

Open
ElioDiNino opened this issue Dec 31, 2022 · 0 comments
Open

Add Backend Antenna Pointing Logic #2

ElioDiNino opened this issue Dec 31, 2022 · 0 comments
Labels
Priority: High Status: Available Issue can be picked up Type: Enhancement New feature or request

Comments

@ElioDiNino
Copy link
Member

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.

@ElioDiNino ElioDiNino added Priority: High Status: Available Issue can be picked up Type: Enhancement New feature or request labels Dec 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: High Status: Available Issue can be picked up Type: Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant