message: Turn off controlled movement in benchmarking mode
diff: @@ -143,8 +143,6 @@ void AVehiclePawn::Tick(float DeltaSeconds)
  //debug("Acceleromter X: %+3.3f Y: %+3.3f Z: %+3.3f", accel.X, accel.Y, accel.Z);
  - debug("Benchmarking: %d", _benchmarking);
  -
  // Send state to flight controller, dividing by 100 to convert cm to m
  TArray<float> motorvals = _flightController->update(_elapsedTime, GetActorLocation()/100, GetVelocity()/100, quat, gyro, accel);
  @@ -158,12 +156,16 @@ void AVehiclePawn::Tick(float DeltaSeconds)
  float y = cos(euler.X)*sin(euler.Y)*sin(euler.Z) - cos(euler.Z)*sin(euler.X);
  float z = cos(euler.Y)*cos(euler.X);
  + // Turn off controlled movement in benmark mode
  + if (!_benchmarking) {
  +
  // Add movement rotationalForces and rotation to vehicle
  - //PlaneMesh->AddForce(overallThrust*FVector(-x, -y, z));
  - //AddActorLocalRotation(DeltaSeconds * FRotator(rotationalForces.Y, rotationalForces.Z, rotationalForces.X) * (180 / M_PI));
  + PlaneMesh->AddForce(overallThrust*FVector(-x, -y, z));
  + AddActorLocalRotation(DeltaSeconds * FRotator(rotationalForces.Y, rotationalForces.Z, rotationalForces.X) * (180 / M_PI));
  // Add animation effects (prop rotation, sound)
  - //addAnimationEffects(motorvals, overallThrust);
  + addAnimationEffects(motorvals, overallThrust);
  + }
  // Accumulate elapsed time
  _elapsedTime += DeltaSeconds;
  