forked from Archive/PX4-Autopilot
Merge pull request #1099 from PX4/mpc_warn_fix
mc_pos_control: compiler warning fix
This commit is contained in:
commit
568e67355a
|
@ -466,7 +466,7 @@ MulticopterPositionControl::update_ref()
|
||||||
{
|
{
|
||||||
if (_local_pos.ref_timestamp != _ref_timestamp) {
|
if (_local_pos.ref_timestamp != _ref_timestamp) {
|
||||||
double lat_sp, lon_sp;
|
double lat_sp, lon_sp;
|
||||||
float alt_sp;
|
float alt_sp = 0.0f;
|
||||||
|
|
||||||
if (_ref_timestamp != 0) {
|
if (_ref_timestamp != 0) {
|
||||||
/* calculate current position setpoint in global frame */
|
/* calculate current position setpoint in global frame */
|
||||||
|
|
Loading…
Reference in New Issue