Skip to content

Commit

Permalink
disable debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Uwe Fechner committed May 1, 2024
1 parent 653e3a4 commit 275ab84
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/flightpathplanner2.jl
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ function on_new_data(fpp::FlightPathPlanner, depower, length, heading, height, t
elseif state == FLY_RIGHT && phi < -fpp.fpca._phi_sw # &&
_switch(fpp, TURN_RIGHT)
elseif state == TURN_RIGHT && (psi < deg2rad(180.0 + fpp.fpca._heading_offset) || fpp.timeout > 145)
println("timeout TURN_RIGHT: $(fpp.timeout)")
if fpp.fpps.log_level > 0
println("timeout TURN_RIGHT: $(fpp.timeout)")
end
_switch(fpp, FLY_LEFT)
elseif state == FLY_LEFT && phi <= -phi_3
if ! fpp.finish
Expand Down

0 comments on commit 275ab84

Please sign in to comment.