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: Encoder HIDScope MODSERIAL QEI biquadFilter mbed
Diff: main.cpp
- Revision:
- 23:335a3b843a5e
- Parent:
- 22:eaf4cbd1dcec
- Child:
- 24:8ca471562212
--- a/main.cpp Thu Oct 08 12:48:54 2015 +0000 +++ b/main.cpp Thu Oct 08 13:27:03 2015 +0000 @@ -35,7 +35,7 @@ // pwm_motor_I=(integrate_error_turn + sample_time*error)*gain; pwm = (4*0.01 + 4)* Gain => 0.1 pwm gewenst (na 1 seconde een verschil van 4 graden) // 0.1 / (4.01) = Gain = 0.025 - double Gain_D_turn=1; + double Gain_D_turn=0.01; // error_derivative_turn=(error - previous_error_turn)/sample_time // @@ -77,7 +77,7 @@ //START OF CODE pc.printf("Start of code \n\r"); - pc.baud(9600); // Set the baudrate + pc.baud(115200); // Set the baudrate // Tickers Ticker looptimer; // Ticker called looptimer to set a looptimerflag