Updates error values
Dependents: locomotion_pid_action_refactor_EMG
Diff: errorFetch.h
- Revision:
- 4:2af658a4e54b
- Parent:
- 3:71a7dd98fb2c
diff -r 71a7dd98fb2c -r 2af658a4e54b errorFetch.h --- a/errorFetch.h Sun Oct 22 08:01:40 2017 +0000 +++ b/errorFetch.h Thu Oct 26 14:02:01 2017 +0000 @@ -12,7 +12,8 @@ volatile float e_der; volatile float e_prev; - void fetchError(int counts, float ref); // Gets reference position on specified pin + double fetchMotorPosition(int counts); + void fetchError(double motorPosition, double ref); // Gets reference position on specified pin private: const float gearRatio;