Skip to content

Commit

Permalink
Initialize _STEdot_neg_max in source file
Browse files Browse the repository at this point in the history
  • Loading branch information
Cole Perschon committed Oct 31, 2023
1 parent f7dcee9 commit f3067c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions libraries/AP_TECS/AP_TECS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1174,6 +1174,7 @@ void AP_TECS::_update_STE_rate_lim(void)
// This is a trivial calculation at the moment but will get bigger once we start adding altitude effects
_STEdot_max = _climb_rate_limit * GRAVITY_MSS;
_STEdot_min = - _minSinkRate * GRAVITY_MSS;
_STEdot_neg_max = - _maxSinkRate * GRAVITY_MSS;
}


Expand Down
2 changes: 1 addition & 1 deletion libraries/AP_TECS/AP_TECS.h
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ class AP_TECS {
float _STEdot_min;

// Specific total energy rate loss at maximum airspeed
float _STEdot_neg_max = -_maxSinkRate * GRAVITY_MSS;
float _STEdot_neg_max;

// Maximum and minimum floating point throttle limits
float _THRmaxf;
Expand Down

0 comments on commit f3067c7

Please sign in to comment.