uavatt component
- Ports
- Services
- set_mass (attribute)
- set_geom (attribute)
- set_gtmrp_geom (function)
- set_saturation_weights (attribute)
- set_control_mode (attribute)
- set_wlimit (attribute)
- set_servo_gain (attribute)
- set_emerg (attribute)
- get_servo_parameters (attribute)
- get_geom_parameters (attribute)
- get_reference (attribute)
- servo (activity)
- set_state (function)
- stop (function)
- log (function)
- log_stop (function)
- log_info (function)
- Tasks
Ports
uav_input (in)
Data structure
|
Attitude/thrust control input.
wrench_measure (out)
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.
rotor_input (out)
Data structure
|
rotor_measure (in)
Data structure
|
state (in)
Data structure
|
Services
set_geom (attribute)
Inputs
|
Set mass and allocation matrix
This is a generic function for setting the geometric parameters of the controlled robot. See set_gtmrp_geom (function) for a specialized function for tilted multi rotors robots.
set_gtmrp_geom (function)
Inputs
|
Throws
|
Compute allocation matrix and inertia tensor for tilt rotors robots.
Generically Tilted Multi-Rotor Platforms (GTMRP) are made of a set of rotors evenly distributed in a horizontal plane. The rotors are tilted around an axis lying in the plane, all by the same angle but with alternating signs on the X axis. The spinning direction is also alternating.
This function is a specialization of the more generic set_geom (attribute).
set_saturation_weights (attribute)
Inputs
|
Throws
|
Select relative priority for thrust, titlting and heading.
When the controller reaches the physical wrench limits of the platform (see set_wlimit (attribute)), an optimisation algorithm finds the closest feasible wrench that keeps the same thurst direction as well as the same roll and pitch torque direction.
The weights specified here allow to give higher priority to certain components of the wrench and let them be less affected by the optimization algorithm. Higher weight means that the corresponding component is less likely to change in intensity.
set_control_mode (attribute)
Inputs
|
Select attitude tracking control law.
With tilt_prioritized
, attitude error is split into a
reduced attitude error, which describes the misalignment of
the thrust direction, and a yaw error, which describes the
heading orientation error. This is the default.
With full_attitude
, a conventional controller, based on the full
attitude error, is used.
set_wlimit (attribute)
Inputs
|
set_servo_gain (attribute)
Inputs
|
set_emerg (attribute)
Inputs
|
Set thresholds for emergency hovering.
dq
and dw
represent the maximum uncertainty tolerated in the
input state (in) for attitude (dq
) and angular velocity (dw
),
measured as 3 times the standard deviation.
By default, dq
is 5⁰ and dw
20⁰/s. Beyond that threshold, an
emergency hovering is started.
The emergency hovering uses no feedback, as the state is considered invalid. Thus, stability is not guaranteed …
get_servo_parameters (attribute)
Outputs
|
get_geom_parameters (attribute)
Outputs
|
get_reference (attribute)
Outputs
|
servo (activity)
Throws
|
Context
|
Track a desired attitude
set_state (function)
Inputs
|
Throws
|
Context
|
Set the desired state
Tasks
main
Context
|