Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
GmiUtils.h File Reference
Include dependency graph for GmiUtils.h:

Go to the source code of this file.

Namespaces

namespace  sf
 
namespace  sf::gmi
 

Functions

_GMI_FUNC bool sf::gmi::getTargetTime (double dist, double vel, double acc, double &time)
 Calculates the time needed to move over the distance.
 
_GMI_FUNC bool sf::gmi::getTargetTime (const AxesCoord &dist, const AxesCoord &max_vel, const AxesCoord &max_acc, AxesCoord &trg_time)
 Calculates the time needed to move over the distance for all axes in the AxisCoord.
 
_GMI_FUNC bool sf::gmi::getAccelerationTime (double dist, double vel, double acc, double &time)
 Calculates the time needed to move over the distance.
 
_GMI_FUNC bool sf::gmi::getAccelerationTime (const AxesCoord &dist, const AxesCoord &max_vel, const AxesCoord &max_acc, AxesCoord &trg_time)
 Calculates the time needed to move over the distance for all axes in the AxisCoord.
 
_GMI_FUNC bool sf::gmi::getTargetAccelerationTime (double dist, double vel, double acc, double &trg_time, double &acc_time)
 Calculates the time and acceleration needed to move over the distance.
 
_GMI_FUNC bool sf::gmi::getPositionVelocity (double dist, double vel, double acc, double cur_tm, double &cur_pos, double &cur_vel)
 Calculates the position and velocity at the current time from the start.
 
_GMI_FUNC bool sf::gmi::calcLinearValue (double dist, double trg_time, double acc_time, double &vel, double &acc)
 ???
 
_GMI_FUNC bool sf::gmi::calcLinearValues (const AxesCoord &dist, double trg_time, double acc_time, AxesCoord &vel, AxesCoord &acc)
 ???
 
_GMI_FUNC bool sf::gmi::getLinearValues (const AxesCoord &dist, const AxesCoord &max_vel, const AxesCoord &max_acc, AxesCoord &trg_vel, AxesCoord &trg_acc, double &trg_time)
 Calculates the velocity and acceleration needed to move a distance in a linear manner. Returns.
 
_GMI_FUNC int sf::gmi::compareValue (double v1, double v2, double tolerance, bool rad_unlimited)
 Compares the passed values v1 and v2. When the two values have no bigger absolute difference the maximum absolute difference passed are assumed equal. The last parameter specifies if the compared value is a radial unlimited axis.