collisionprevention: fix typo in param description & minor code style

This commit is contained in:
Beat Küng
2018-11-20 14:14:13 +01:00
parent 053494c535
commit 1e17a86a39
2 changed files with 2 additions and 4 deletions
@@ -49,8 +49,6 @@
#include <mathlib/mathlib.h>
#include <drivers/drv_hrt.h>
#include <uORB/topics/mavlink_log.h>
#include <uORB/Publication.hpp>
using uORB::Publication;
#include <uORB/uORB.h>
#include <systemlib/mavlink_log.h>
#include <lib/FlightTasks/tasks/FlightTask/SubscriptionArray.hpp>
@@ -68,7 +66,7 @@ public:
*/
bool initializeSubscriptions(SubscriptionArray &subscription_array);
bool is_active() {return MPC_COL_PREV_D.get() > 0 ;}
bool is_active() { return MPC_COL_PREV_D.get() > 0; }
void modifySetpoint(matrix::Vector2f &original_setpoint, const float max_speed);
@@ -42,7 +42,7 @@
/**
* Minimum distance the vehicle should keep to all obstacles
*
* Only used in Position mode. Collision avoidace is disable by setting this parameter to a negative value
* Only used in Position mode. Collision avoidace is disabled by setting this parameter to a negative value
*
* @min -1
* @max 15