Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed QEI HIDScope biquadFilter MODSERIAL FastPWM
Diff: structures.h
- Branch:
- Branch2
- Revision:
- 66:fa7171cf3f67
- Parent:
- 64:5a6bf0cd1c50
diff -r 6252198c3b67 -r fa7171cf3f67 structures.h --- a/structures.h Wed Oct 16 12:37:02 2019 +0000 +++ b/structures.h Wed Oct 16 13:39:19 2019 +0000 @@ -3,21 +3,37 @@ //Structures //--Motor data - struct motorReturnSub + + struct motorDataOutputSub { - int zerocounts; int counts; float angle; float velocity; }; - struct motorData + struct motorDataInputSub + { + float PWM; + int calibrationCounts; + }; + + struct motorDataCombined { - motorReturnSub motor1; - motorReturnSub motor2; - motorReturnSub motor3; + motorDataOutputSub output; + motorDataInputSub input; + }; + struct motorStruc + { + motorDataCombined motor1; + motorDataCombined motor2; + motorDataCombined motor3; + float dt; + bool debug; + }; + + //--PID controller settings struct ControllerSettings //Controller settings of the discrete TF {