forked from Archive/PX4-Autopilot
Fix code style
This commit is contained in:
parent
e9b4946d9f
commit
5d9048280f
|
@ -813,8 +813,8 @@ MavlinkMissionManager::parse_mavlink_mission_item(const mavlink_mission_item_t *
|
|||
mission_item->yaw = _wrap_pi(mavlink_mission_item->param4 * M_DEG_TO_RAD_F);
|
||||
mission_item->loiter_radius = fabsf(mavlink_mission_item->param3);
|
||||
mission_item->loiter_direction = (mavlink_mission_item->param3 > 0) ? 1 : -1; /* 1 if positive CW, -1 if negative CCW */
|
||||
|
||||
/* unsigned, so can't be negative, only check for overflow */
|
||||
|
||||
/* unsigned, so can't be negative, only check for overflow */
|
||||
if (mavlink_mission_item->command >= NAV_CMD_INVALID) {
|
||||
mission_item->nav_cmd = NAV_CMD_INVALID;
|
||||
|
||||
|
|
Loading…
Reference in New Issue