Skip to content

Commit

Permalink
#162 Remove static from float local variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ataffanel committed Nov 29, 2016
1 parent 36eedfb commit df4abcf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/modules/src/estimator_kalman.c
Original file line number Diff line number Diff line change
Expand Up @@ -619,9 +619,9 @@ static void stateEstimatorPredict(float cmdThrust, Axis3f *acc, Axis3f *gyro, fl
}
quadIsFlying = (xTaskGetTickCount()-lastFlightCmd) < IN_FLIGHT_TIME_THRESHOLD;

static float dx, dy, dz;
static float tmpSPX, tmpSPY, tmpSPZ;
static float zacc;
float dx, dy, dz;
float tmpSPX, tmpSPY, tmpSPZ;
float zacc;

if (quadIsFlying) // only acceleration in z direction
{
Expand Down

0 comments on commit df4abcf

Please sign in to comment.