FCS - removed dead code (#4663)

This commit is contained in:
ulteq 2016-11-12 17:36:21 +01:00 committed by GitHub
parent c66f9e5144
commit eec0c62dc5

View File

@ -73,10 +73,6 @@ double traceBullet(double initSpeed, double airFriction, double angle, double an
} }
double getSolution(double initSpeed, double airFriction, double angleTarget, double distance) { double getSolution(double initSpeed, double airFriction, double angleTarget, double distance) {
double posTargetX, posTargetY;
posTargetX = cos(RADIANS(angleTarget)) * distance;
posTargetY = sin(RADIANS(angleTarget)) * distance;
if (traceBullet(initSpeed, airFriction, MAXELEVATION, angleTarget, distance) < 0) { if (traceBullet(initSpeed, airFriction, MAXELEVATION, angleTarget, distance) < 0) {
return MAXELEVATION - angleTarget; return MAXELEVATION - angleTarget;
} }