SamuelBrucksch / open360tracker

Open source antenna tracker for FPV featuring a slipring for continuous 360 degree rotation.
41 stars 17 forks source link

Tilt servo pointing 90° up on start #12

Closed SamuelBrucksch closed 8 years ago

SamuelBrucksch commented 9 years ago

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

SamuelBrucksch commented 9 years ago

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 commented 8 years ago

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 commented 8 years ago

This should be fixed by now.