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

Tilt servo pointing 90° up on start #12

Closed
SamuelBrucksch opened this issue May 3, 2015 · 3 comments
Closed

Tilt servo pointing 90° up on start #12

SamuelBrucksch opened this issue May 3, 2015 · 3 comments
Assignees

Comments

@SamuelBrucksch
Copy link
Owner

Right now the tilt servo points up 90° when setting home due to the dist = 0 -> angle 90°. This needs to be fixed.

@SamuelBrucksch SamuelBrucksch self-assigned this May 3, 2015
@SamuelBrucksch SamuelBrucksch added this to the Version 1.0 milestone May 3, 2015
@SamuelBrucksch SamuelBrucksch removed this from the Version 1.0 milestone May 3, 2015
@SamuelBrucksch
Copy link
Owner Author

I fixed the issue, that START_TRACKING_DISTANCE was not working, this fixes the tilt servo pointing up when using distances > 0. For START_TRACKING_DISTANCE == 0 i still need to fix it.

@SamuelBrucksch
Copy link
Owner Author

Possible fix:
http://fpv-community.de/showthread.php?49179-open360tracker-Der-Community-Antennentracker-Made-in-Germany&p=838725&viewfull=1#post838725

void calcTilt(){
uint16_t alpha = 0;
if (targetPosition.alt < trackerPosition.alt){
targetPosition.alt = trackerPosition.alt;
}
//prevent division by 0
...

SamuelBrucksch added a commit that referenced this issue Aug 17, 2015
possible fix for issue #12
@SamuelBrucksch
Copy link
Owner Author

This should be fixed by now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant