mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 17:58:52 +08:00
collisionprevention: fix typo in param description & minor code style
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user