Closed SamuelBrucksch closed 8 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.
void calcTilt(){ uint16_t alpha = 0; if (targetPosition.alt < trackerPosition.alt){ targetPosition.alt = trackerPosition.alt; } //prevent division by 0 ...
This should be fixed by now.
Right now the tilt servo points up 90° when setting home due to the dist = 0 -> angle 90°. This needs to be fixed.