Skip to content
Snippets Groups Projects
Commit 2e9cb659 authored by Dennis Mannhart's avatar Dennis Mannhart Committed by Beat Küng
Browse files

FlightTaskManual: method to reset all members setpoints to NAN

parent 52eeb025
No related branches found
No related tags found
No related merge requests found
/****************************************************************************
*
* Copyright (c) 2017 PX4 Development Team. All rights reserved.
* Copyright (c) 2018 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
......@@ -98,3 +98,12 @@ bool FlightTaskManual::_evaluateSticks()
return false;
}
}
void FlightTaskManual::_resetToNAN()
{
_thr_sp *= NAN;
_vel_sp *= NAN;
_pos_sp *= NAN;
_yaw_sp = NAN;
_yaw_rate_sp = NAN;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment