Firmware
Public Member Functions | List of all members
ManualSmoothingZ Class Reference
Inheritance diagram for ManualSmoothingZ:
ModuleParams ListNode< ModuleParams *>

Public Member Functions

 ManualSmoothingZ (ModuleParams *parent, const float &vel, const float &stick)
 
void smoothVelFromSticks (float &vel_sp, const float dt)
 Smooth velocity setpoint based on flight direction. More...
 
float getMaxAcceleration ()
 Get max accleration.
 
ManualIntentionZ getIntention ()
 Get user intention. More...
 
void overwriteAccelerationUp (float acc_max_up)
 
void overwriteAccelerationDown (float acc_max_down)
 
void overwriteJerkMax (float jerk_max)
 
- Public Member Functions inherited from ModuleParams
 ModuleParams (ModuleParams *parent)
 
void setParent (ModuleParams *parent)
 Sets the parent module. More...
 
 ModuleParams (const ModuleParams &)=delete
 
ModuleParamsoperator= (const ModuleParams &)=delete
 
 ModuleParams (ModuleParams &&)=delete
 
ModuleParamsoperator= (ModuleParams &&)=delete
 
- Public Member Functions inherited from ListNode< ModuleParams *>
void setSibling (ModuleParams * sibling)
 
const ModuleParamsgetSibling () const
 

Additional Inherited Members

- Protected Member Functions inherited from ModuleParams
virtual void updateParams ()
 Call this method whenever the module gets a parameter change notification. More...
 
virtual void updateParamsImpl ()
 The implementation for this is generated with the macro DEFINE_PARAMETERS()
 
- Protected Attributes inherited from ListNode< ModuleParams *>
ModuleParams_sibling
 

Member Function Documentation

§ getIntention()

ManualIntentionZ ManualSmoothingZ::getIntention ( )
inline

Get user intention.

See also
ManualIntentionZ

§ smoothVelFromSticks()

void ManualSmoothingZ::smoothVelFromSticks ( float &  vel_sp,
const float  dt 
)

Smooth velocity setpoint based on flight direction.

Parameters
vel_sp[2]array: vel_sp[0] = current velocity set-point; vel_sp[1] = previous velocity set-point vel_sp will contain smoothed current / previous set-point.
dttime delta in seconds

The documentation for this class was generated from the following files: