angledfa
Dependents: kinematics_controlv4 kinematics_control_copyfds Robot_control ShowIt
Fork of AnglePosition by
AnglePosition.h@1:5c789825341d, 2017-10-31 (annotated)
- Committer:
- peterknoben
- Date:
- Tue Oct 31 14:34:23 2017 +0000
- Revision:
- 1:5c789825341d
- Parent:
- 0:d7e19af20f93
- Child:
- 2:20afba507e9e
jhkdsg
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
peterknoben | 0:d7e19af20f93 | 1 | #ifndef _ANGLEPOSITION_H_INCLUDED_ |
peterknoben | 0:d7e19af20f93 | 2 | #define _ANGLEPOSITION_H_INCLUDED_ |
peterknoben | 0:d7e19af20f93 | 3 | |
peterknoben | 0:d7e19af20f93 | 4 | #include "mbed.h" |
peterknoben | 0:d7e19af20f93 | 5 | |
peterknoben | 0:d7e19af20f93 | 6 | class AnglePosition |
peterknoben | 0:d7e19af20f93 | 7 | { |
peterknoben | 0:d7e19af20f93 | 8 | public: |
peterknoben | 0:d7e19af20f93 | 9 | /** |
peterknoben | 0:d7e19af20f93 | 10 | *Constructor |
peterknoben | 0:d7e19af20f93 | 11 | */ |
peterknoben | 0:d7e19af20f93 | 12 | AnglePosition(void); |
peterknoben | 0:d7e19af20f93 | 13 | |
peterknoben | 1:5c789825341d | 14 | float gettargetpositionpot(double input, int max_range); //potmeter |
peterknoben | 1:5c789825341d | 15 | |
peterknoben | 1:5c789825341d | 16 | float gettargetposition(float input, int max_range); |
peterknoben | 0:d7e19af20f93 | 17 | |
peterknoben | 0:d7e19af20f93 | 18 | float getreferenceposition(float target, float offset); |
peterknoben | 0:d7e19af20f93 | 19 | |
peterknoben | 0:d7e19af20f93 | 20 | float getalpha(float max_rangex, float max_rangey, float x_offset, float y_offset, float alpha_offset, float L1, float L2, double inputx, double inputy); |
peterknoben | 0:d7e19af20f93 | 21 | |
peterknoben | 0:d7e19af20f93 | 22 | float getbeta(float max_rangex, float max_rangey, float x_offset, float y_offset, float beta_offset, float L1, float L2, double inputx, double inputy); |
peterknoben | 0:d7e19af20f93 | 23 | |
peterknoben | 0:d7e19af20f93 | 24 | |
peterknoben | 0:d7e19af20f93 | 25 | private: |
peterknoben | 0:d7e19af20f93 | 26 | |
peterknoben | 0:d7e19af20f93 | 27 | }; |
peterknoben | 0:d7e19af20f93 | 28 | #endif |