Ports
uav_input (out)
Data structure
|
Attitude/thrust control input.
wrench_measure (in)
Data structure
|
Provides current wrench measurements.
This port contains the current wrench exerted by the UAV according to the propeller measurements and the geometric model.
state (in)
Data structure
|
reference (in)
Data structure
|
Services
set_saturation (attribute)
Inputs
|
set_servo_gain (attribute)
Inputs
|
set_mass (attribute)
Inputs
|
set_xyradius (attribute)
Inputs
|
set_emerg (attribute)
Inputs
|
Set thresholds for emergency descent.
dx and dv represent the maximum uncertainty tolerated in the
input state (in) for position (dx) and linear velocity (dv),
measured as 3 times the standard deviation.
By default, dx is 5cm and dv 20cm/s. Beyond that threshold, an
emergency descent is started.
As long as the emergency descent is active, the position error or
linear velocity error are cancelled (i.e. the desired roll and pitch
are set to 0) and a vertical acceleration of descent (by default
-0.1 m/s²) is requested. The descent is based on the mass only,
with no feedback, as the state is considered invalid.
get_servo_parameters (attribute)
Outputs
|
get_body_parameters (attribute)
Outputs
|
get_reference (function)
Outputs
|
servo (activity)
Throws
|
Context
|
Track a desired position
set_state (function)
Inputs
|
Context
|
Set the desired state
set_position (function)
Inputs
|
Context
|
Set the desired position
set_current_position (activity)
Throws
|
Context
|
Set the desired position
set_velocity (function)
Inputs
|
Context
|
Set the desired velocity
The controller will try to reach the given velocity and heading angular velocity. Note that for safety reasons, a watchdog will trigger after 500ms and reset the target velocity to zero.
hover (function)
Context
|
Stop tracking a desired position
This sets the current reference velocity and acceleration to 0, maintaining the current position and heading. Any dynamic reference tracking is cancelled (see servo (activity)).
reset (function)
Context
|
Stop control loop and wait for a new valid reference
This function is meant to reset the controller and stop controlling the robot. The component returns to the same state as when it is started, waiting for a first reference state provided either with set_state (function), set_position (function), set_velocity (function) or servo (activity) to track a dynamic reference.
log (function)
Inputs
|
Throws
|
Log controller data
log_stop (function)
Stop logging
log_info (function)
Outputs
|
Show missed log entries