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.
brakes.h@28:1086791972d0, 2022-06-15 (annotated)
- Committer:
- cdevarakonda
- Date:
- Wed Jun 15 13:36:11 2022 +0000
- Revision:
- 28:1086791972d0
- Child:
- 30:c65bf90e8f47
Update brakes pins, created brakes class and made new functions but still to be tested;
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| cdevarakonda | 28:1086791972d0 | 1 | #include <mbed.h> |
| cdevarakonda | 28:1086791972d0 | 2 | #include "motor.h" |
| cdevarakonda | 28:1086791972d0 | 3 | #include "definitions.h" |
| cdevarakonda | 28:1086791972d0 | 4 | class Brakes{ |
| cdevarakonda | 28:1086791972d0 | 5 | public: |
| cdevarakonda | 28:1086791972d0 | 6 | Brakes(); |
| cdevarakonda | 28:1086791972d0 | 7 | |
| cdevarakonda | 28:1086791972d0 | 8 | void ParkMode(); |
| cdevarakonda | 28:1086791972d0 | 9 | void BrakesOn(); |
| cdevarakonda | 28:1086791972d0 | 10 | void FrontBrakeOn(); |
| cdevarakonda | 28:1086791972d0 | 11 | void RearBrakeOn(); |
| cdevarakonda | 28:1086791972d0 | 12 | void MechanicalBraking(int brakeRate, Motor motor); |
| cdevarakonda | 28:1086791972d0 | 13 | void RegenControl(int ratecontrol, Motor motor); |
| cdevarakonda | 28:1086791972d0 | 14 | }; |
| cdevarakonda | 28:1086791972d0 | 15 |