angledfa
Dependents: kinematics_controlv4 kinematics_control_copyfds Robot_control ShowIt
Fork of AnglePosition by
AnglePosition.h@0:d7e19af20f93, 2017-10-26 (annotated)
- Committer:
- peterknoben
- Date:
- Thu Oct 26 10:53:29 2017 +0000
- Revision:
- 0:d7e19af20f93
- Child:
- 1:5c789825341d
Inclusief header files
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 | 0:d7e19af20f93 | 14 | float gettargetposition(double input, int max_range); //potmeter |
peterknoben | 0:d7e19af20f93 | 15 | |
peterknoben | 0:d7e19af20f93 | 16 | float getreferenceposition(float target, float offset); |
peterknoben | 0:d7e19af20f93 | 17 | |
peterknoben | 0:d7e19af20f93 | 18 | 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 | 19 | |
peterknoben | 0:d7e19af20f93 | 20 | 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 | 21 | |
peterknoben | 0:d7e19af20f93 | 22 | |
peterknoben | 0:d7e19af20f93 | 23 | private: |
peterknoben | 0:d7e19af20f93 | 24 | |
peterknoben | 0:d7e19af20f93 | 25 | }; |
peterknoben | 0:d7e19af20f93 | 26 | #endif |