![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Heading control with pid and magnetometer
Dependencies: HMC5883L mbed motoresDC
pines.h@0:c4c11b0ac1b9, 2016-06-03 (annotated)
- Committer:
- tabris2015
- Date:
- Fri Jun 03 03:57:23 2016 +0000
- Revision:
- 0:c4c11b0ac1b9
First commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
tabris2015 | 0:c4c11b0ac1b9 | 1 | #ifdef MAPLE_MINI |
tabris2015 | 0:c4c11b0ac1b9 | 2 | // pines para los motores |
tabris2015 | 0:c4c11b0ac1b9 | 3 | |
tabris2015 | 0:c4c11b0ac1b9 | 4 | // Pines para el driver de motores |
tabris2015 | 0:c4c11b0ac1b9 | 5 | #define PWM_L PA_8 // d27 |
tabris2015 | 0:c4c11b0ac1b9 | 6 | #define CTRL1_L PB_12 // d31 |
tabris2015 | 0:c4c11b0ac1b9 | 7 | #define CTRL2_L PB_13 // d30 |
tabris2015 | 0:c4c11b0ac1b9 | 8 | #define PWM_R PA_9 // d26 |
tabris2015 | 0:c4c11b0ac1b9 | 9 | #define CTRL1_R PB_14 // d29 |
tabris2015 | 0:c4c11b0ac1b9 | 10 | #define CTRL2_R PB_15 // d28 |
tabris2015 | 0:c4c11b0ac1b9 | 11 | |
tabris2015 | 0:c4c11b0ac1b9 | 12 | // pines para el rf |
tabris2015 | 0:c4c11b0ac1b9 | 13 | |
tabris2015 | 0:c4c11b0ac1b9 | 14 | #define nrf_CE PA_3 |
tabris2015 | 0:c4c11b0ac1b9 | 15 | #define nrf_CSN PA_4 |
tabris2015 | 0:c4c11b0ac1b9 | 16 | #define spi_SCK PA_5 |
tabris2015 | 0:c4c11b0ac1b9 | 17 | #define spi_MOSI PA_7 |
tabris2015 | 0:c4c11b0ac1b9 | 18 | #define spi_MISO PA_6 |
tabris2015 | 0:c4c11b0ac1b9 | 19 | |
tabris2015 | 0:c4c11b0ac1b9 | 20 | // pines para el puerto serial |
tabris2015 | 0:c4c11b0ac1b9 | 21 | #define TX3_PIN PB_10 |
tabris2015 | 0:c4c11b0ac1b9 | 22 | #define RX3_PIN PB_11 |
tabris2015 | 0:c4c11b0ac1b9 | 23 | |
tabris2015 | 0:c4c11b0ac1b9 | 24 | |
tabris2015 | 0:c4c11b0ac1b9 | 25 | // pines para bus I2C |
tabris2015 | 0:c4c11b0ac1b9 | 26 | #define SDA_PIN PB_7 |
tabris2015 | 0:c4c11b0ac1b9 | 27 | #define SCL_PIN PB_6 |
tabris2015 | 0:c4c11b0ac1b9 | 28 | #endif |