Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
GmiUtils.h
Go to the documentation of this file.
1#pragma once
2
4
5namespace sf::gmi
6{
7
16_GMI_FUNC bool getTargetTime(double dist, double vel, double acc, double& time);
17
26_GMI_FUNC bool getTargetTime(const AxesCoord& dist, const AxesCoord& max_vel, const AxesCoord& max_acc, AxesCoord& trg_time);
27
36_GMI_FUNC bool getAccelerationTime(double dist, double vel, double acc, double& time);
37
46_GMI_FUNC bool getAccelerationTime(const AxesCoord& dist, const AxesCoord& max_vel, const AxesCoord& max_acc, AxesCoord& trg_time);
47
57_GMI_FUNC bool getTargetAccelerationTime(double dist, double vel, double acc, double& trg_time, double& acc_time);
58
69_GMI_FUNC bool getPositionVelocity(double dist, double vel, double acc, double cur_tm, double& cur_pos, double& cur_vel);
70
80_GMI_FUNC bool calcLinearValue(double dist, double trg_time, double acc_time, double& vel, double& acc);
81
91_GMI_FUNC bool calcLinearValues(const AxesCoord& dist, double trg_time, double acc_time, AxesCoord& vel, AxesCoord& acc);
92
103_GMI_FUNC bool
104getLinearValues(const AxesCoord& dist, const AxesCoord& max_vel, const AxesCoord& max_acc, AxesCoord& trg_vel, AxesCoord& trg_acc, double& trg_time);
105
116_GMI_FUNC int compareValue(double v1, double v2, double tolerance, bool rad_unlimited);
117
118}// namespace sf::gmi
All axis values in one structure accompanied by some handy manipulation methods.
Definition AxesCoord.h:13
#define _GMI_FUNC
Definition gmi/iface/global.h:34
Definition AxesCoord.h:7
_GMI_FUNC bool calcLinearValue(double dist, double trg_time, double acc_time, double &vel, double &acc)
???
_GMI_FUNC bool getAccelerationTime(double dist, double vel, double acc, double &time)
Calculates the time needed to move over the distance.
_GMI_FUNC bool 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 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 calcLinearValues(const AxesCoord &dist, double trg_time, double acc_time, AxesCoord &vel, AxesCoord &acc)
???
_GMI_FUNC bool getTargetTime(double dist, double vel, double acc, double &time)
Calculates the time needed to move over the distance.
_GMI_FUNC bool 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....
_GMI_FUNC int 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 maxi...