[Coordinated flight]: Changes requested in review

1) Got rid of magic numbers.
2) Nested if statement.