Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guard offboard and allow specifying the position setpoint type #3405

Merged
merged 4 commits into from
Mar 21, 2016

Conversation

AndreasAntener
Copy link
Member

This addresses 2 things:

  • nan setpoints coming from offboard, see guard against NaN velocity/position setpoints #3001. I myself didn't encounter this problem, but preventing it in the first instance and dropping out of offboard seems the right approach to me.
  • allow specifying the position setpoint type

Later is the primary focus. This way we can use setpoint type specific functionality also in offboard (e.g. landing/takeoff). For mavros users this complements mavlink/mavros#402

handle_message_set_position_target_local_ned is field tested

PX4_ISFINITE(set_position_target_local_ned.afy) &&
PX4_ISFINITE(set_position_target_local_ned.afz) &&
PX4_ISFINITE(set_position_target_local_ned.yaw);

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would argue that only the setpoints which are actually to be used (using the ignore mask) need to be finite.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well the others are going to be 0 if not set, if they are not finite something is wrong I'd say.

@AndreasAntener
Copy link
Member Author

@julianoes if there is no other concern here I'll merge this

@AndreasAntener AndreasAntener merged commit f3a1abf into PX4:master Mar 21, 2016
@AndreasAntener AndreasAntener deleted the nan_guard_offboard branch March 21, 2016 19:57
@AndreasAntener
Copy link
Member Author

Rebased and merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants