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:
- 25:d536056a2666
- Parent:
- 24:8ca471562212
- Child:
- 26:b3693f431d6f
--- a/main.cpp Thu Oct 08 14:19:10 2015 +0000 +++ b/main.cpp Thu Oct 08 14:25:46 2015 +0000 @@ -8,7 +8,7 @@ MODSERIAL pc(USBTX,USBRX); DigitalOut debug_led_red(LED_RED); // Debug LED DigitalOut debug_led_green(LED_GREEN); // Debug LED -DigitalOut debug_led_red(LED_BLUE); // Debug LED +DigitalOut debug_led_blue(LED_BLUE); // Debug LED HIDScope scope(2); // HIDSCOPE declared @@ -22,7 +22,6 @@ DigitalIn buttonH1(D2); // Button 3 (hoog op board) for testing at the top board DigitalIn buttonH2(D6); // Button 4 (hoog op board) for testing at the top board - volatile bool looptimerflag; const double cw=0; // zero is clockwise (front view) const double ccw=1; // one is counterclockwise (front view) @@ -64,6 +63,9 @@ // MAIN function int main() { + debug_led_red=1; + debug_led_blue=1; + debug_led_green=1; AnalogIn potmeter(A0); // Potmeter that can read a reference value (DEBUG TOOL) QEI motor_turn(D12,D13,NC,32); // Encoder for motor Turn PwmOut pwm_motor_turn(D5); // Pwm for motor Turn