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
00001 #include <mbed.h> 00002 #include "motor.h" 00003 #include "rtc.h" 00004 #include "definitions.h" 00005 class Brakes{ // Separate brakes class to implement friction and regen braking 00006 public: 00007 Brakes(); //default constructor 00008 00009 void ParkMode(Motor motor); //Park Mode Definition 00010 void BrakesOn(); //Turns on Both Mechanical BRakes 00011 void FrontBrakeOn(); //Only turns on Front Mechanical Brake 00012 void RearBrakeOn(); // Only turns on Rear Mechanical Brake 00013 void MechanicalBraking(int brakeRate, Motor motor); //Mechanical Braking Function when train in operation 00014 void RegenControl(int ratecontrol, Motor motor); //Regen Function 00015 void EmergencyStop(Motor motor, RoundTrainCircuit rtc, bool emergencyStopActive); 00016 00017 }; 00018
Generated on Tue Jul 19 2022 04:44:17 by
1.7.2