mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-28 03:04:08 +08:00
mc_pos_control: compiler warning fix
This commit is contained in:
parent
857b843d44
commit
b9e2fa2c0d
@ -466,7 +466,7 @@ MulticopterPositionControl::update_ref()
|
||||
{
|
||||
if (_local_pos.ref_timestamp != _ref_timestamp) {
|
||||
double lat_sp, lon_sp;
|
||||
float alt_sp;
|
||||
float alt_sp = 0.0f;
|
||||
|
||||
if (_ref_timestamp != 0) {
|
||||
/* calculate current position setpoint in global frame */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user