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
Diff: globals.h
- Revision:
- 0:9c49bdc7e402
- Child:
- 1:ba2946ff6770
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/globals.h Wed Nov 22 02:18:07 2017 +0000 @@ -0,0 +1,31 @@ +#ifndef _GLOBALS_ +#define _GLOBALS_ + +#include "mbed.h" + +extern AnalogIn LL_t; +extern AnalogIn L_t; +extern AnalogIn R_t; +extern AnalogIn RR_t; + +extern DigitalOut LL_e; +extern DigitalOut L_e; +extern DigitalOut R_e; +extern DigitalOut RR_e; + + +extern InterruptIn cM1_1; //interrupt from encoders +extern InterruptIn cM1_2; +extern InterruptIn cM2_1; +extern InterruptIn cM2_2; + +extern PwmOut M1F; //motor direction and speed control +extern PwmOut M2B; +extern PwmOut M1B; +extern PwmOut M2F; +extern Serial pc; + +extern volatile unsigned long counterM1; // counter for hall sensors +extern volatile unsigned long counterM2; + +#endif