modm API documentation
modm::SCurveController< T > Class Template Reference

S-Curve trajectory generation with feedback. More...

#include <modm/math/filter/s_curve_controller.hpp>

Classes

struct  Parameter
 

Public Member Functions

 SCurveController (const Parameter &parameter)
 
void setParameter (const Parameter &parameter)
 
void setSpeedMaximum (const T &speed)
 
void setSpeedMinimim (const T &speed)
 
void setSpeedTarget (const T &speed)
 
bool isTargetReached () const
 
void update (T error, const T &speed)
 
const T & getValue () const
 setpoint output for the speed value
 

Detailed Description

template<typename T>
class modm::SCurveController< T >

S-Curve trajectory generation with feedback.

closed-loop

SCurveController<int16_t> controller;
controller.update(positionTarget - currentPosition, currentSpeed);
Author
Fabian Greif
Georgi Grinshpun

Member Function Documentation

template<typename T >
void modm::SCurveController< T >::setParameter ( const Parameter parameter)

Reset the parameters of the controller.

Parameters
parameterlist of the controller

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