Libary for PM2.
Dependencies: LSM9DS1 RangeFinder FastPWM
Dependents: PM2_Example_PES_board PM2_Example_PES_board PM2_Example_PES_board PM2_Example_PES_board ... more
PM2_Libary.h@32:bb074bb17d39, 2022-06-22 (annotated)
- Committer:
- pmic
- Date:
- Wed Jun 22 14:05:13 2022 +0000
- Revision:
- 32:bb074bb17d39
- Parent:
- 31:f62a64ffb273
Updated SensorBar so it is not blocking the program if it is not connected
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
pmic | 10:fe74e8909d3f | 1 | /* PM2_Libary */ |
pmic | 10:fe74e8909d3f | 2 | #include "EncoderCounter.h" |
pmic | 10:fe74e8909d3f | 3 | #include "Servo.h" |
pmic | 10:fe74e8909d3f | 4 | #include "SpeedController.h" |
pmic | 10:fe74e8909d3f | 5 | #include "PositionController.h" |
pmic | 10:fe74e8909d3f | 6 | #include "FastPWM.h" |
pmic | 12:2542b22a84d2 | 7 | #include "RangeFinder.h" |
pmic | 24:f2614d8577a1 | 8 | // #include "LSM9DS1_i2c.h" // this thing is a mess |
pmic | 24:f2614d8577a1 | 9 | #include "SensorBar.h" |
pmic | 31:f62a64ffb273 | 10 | |
pmic | 31:f62a64ffb273 | 11 | /** PES-Board Versions |
pmic | 31:f62a64ffb273 | 12 | * |
pmic | 31:f62a64ffb273 | 13 | * New Version | Old Version |
pmic | 31:f62a64ffb273 | 14 | * |
pmic | 31:f62a64ffb273 | 15 | * DigitalOut enable_motors(PB_15); | DigitalOut enable_motors(PB_2); |
pmic | 31:f62a64ffb273 | 16 | * FastPWM pwm_M1(PB_13); | FastPWM pwm_M1(PA_8); |
pmic | 31:f62a64ffb273 | 17 | * FastPWM pwm_M2(PA_9); | FastPWM pwm_M2(PA_9); |
pmic | 31:f62a64ffb273 | 18 | * EncoderCounter encoder_M1(PA_6, PC_7); | EncoderCounter encoder_M1(PB_6, PB_7); |
pmic | 31:f62a64ffb273 | 19 | * EncoderCounter encoder_M2(PB_6, PB_7); | EncoderCounter encoder_M2(PA_6, PC_7); |
pmic | 31:f62a64ffb273 | 20 | */ |