mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-30 23:01:39 +08:00
Code style
This commit is contained in:
@@ -96,8 +96,7 @@ Land::on_active()
|
|||||||
{
|
{
|
||||||
/* for VTOL update landing location during back transition */
|
/* for VTOL update landing location during back transition */
|
||||||
if (_navigator->get_vstatus()->is_vtol &&
|
if (_navigator->get_vstatus()->is_vtol &&
|
||||||
_navigator->get_vstatus()->in_transition_mode)
|
_navigator->get_vstatus()->in_transition_mode) {
|
||||||
{
|
|
||||||
struct position_setpoint_triplet_s *pos_sp_triplet = _navigator->get_position_setpoint_triplet();
|
struct position_setpoint_triplet_s *pos_sp_triplet = _navigator->get_position_setpoint_triplet();
|
||||||
pos_sp_triplet->current.lat = _navigator->get_global_position()->lat;
|
pos_sp_triplet->current.lat = _navigator->get_global_position()->lat;
|
||||||
pos_sp_triplet->current.lon = _navigator->get_global_position()->lon;
|
pos_sp_triplet->current.lon = _navigator->get_global_position()->lon;
|
||||||
|
|||||||
Reference in New Issue
Block a user