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.
Diff: definitions.cpp
- Revision:
- 36:5c61710813b3
- Parent:
- 35:2f476d981896
--- a/definitions.cpp Wed Jun 22 11:14:32 2022 +0000 +++ b/definitions.cpp Wed Jun 21 16:58:23 2023 +0000 @@ -12,9 +12,9 @@ // PIN DEFINITIONS // INNOVATION/ COLLISION DETECTION -AnalogIn irSensor_1(PF_6); -AnalogIn irSensor_2(PF_7); -AnalogIn irSensor_3(PC_2); +//AnalogIn irSensor_1(PF_6); +//AnalogIn irSensor_2(PF_7); +//AnalogIn irSensor_3(PC_2); //RTC individual inputs// DigitalIn rtc_1(PG_4, PullUp); @@ -51,14 +51,7 @@ DigitalOut speedLimit2M1(PD_7); DigitalOut speedLimit3M1(PE_3); -////motor 2 settings; -//DigitalOut keySwitchM2(PD_10); -//DigitalOut directionM2(PG_6); -//DigitalOut footswitchM2(PG_4); -//DigitalOut seatM2(PC_8); -//DigitalOut inchFwdM2(PC_6); -//DigitalOut speedLimit2M2(PA_12); -//DigitalOut speedLimit3M2(PA_11); + DigitalIn superCapPreCharge(PB_11); // Supercaps are pre-charged DigitalIn superCapVoltage(PB_2); // Supercaps are Full @@ -72,9 +65,9 @@ //DigitalOut contactMtr2(PG_8); //mechanical braking and other air components. -DigitalOut brakeValve32(PD_3); //brake pins updated wire 90 back brake -DigitalOut brakeValve22(PC_0); // brake pins updated wire 91 front brake -DigitalOut whistleValve32(PG_15); +DigitalOut backBrake(PD_3); //brake pins updated wire 90 back brake +DigitalOut frontBrake(PC_0); // brake pins updated wire 91 front brake +DigitalOut whistle(PG_15); DigitalIn pressureSwitch1(PC_13, PullUp); DigitalIn pressureSwitch2(PC_1, PullUp); @@ -82,14 +75,14 @@ //DigitalIn brakePressure(PH_0); // NOT INSTALLED DigitalIn mainlinePressure(PH_1, PullUp); -/*//Energy Storage; +//Energy Storage; AnalogIn vref_powercab(PA_0); AnalogIn vref_supercap(PF_5); AnalogIn vout_powercab(PB_1); AnalogIn vout_supercap(PF_3); -*/ + ///Lights -DigitalOut FrontLight(PB_14); -DigitalOut BackLight(PB_15); \ No newline at end of file +DigitalOut frontLight(PB_14); +DigitalOut backLight(PB_15); \ No newline at end of file