Skip to content

Commit

Permalink
Plane: tailsitter forward transition bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
kd0aij authored and tridge committed Jan 22, 2019
1 parent e7dcee0 commit 5c81a78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ArduPlane/quadplane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1423,7 +1423,7 @@ void QuadPlane::update_transition(void)
// millisecond. Assume we want to get to the transition angle
// in half the transition time
float transition_rate = tailsitter.transition_angle / float(transition_time_ms/2);
uint32_t dt = now - transition_low_airspeed_ms;
uint32_t dt = now - transition_start_ms;
plane.nav_pitch_cd = constrain_float((-transition_rate * dt)*100, -8500, 0);
plane.nav_roll_cd = 0;
check_attitude_relax();
Expand Down

0 comments on commit 5c81a78

Please sign in to comment.