Moved C++ comments from source files to headers (#1111)

Also sorted functions in C++ sources to match order in related headers.
This commit is contained in:
Tyler Veness
2018-05-31 20:47:15 -07:00
committed by Peter Johnson
parent d9971a705a
commit 8c680a26f8
234 changed files with 9936 additions and 9309 deletions

View File

@@ -13,24 +13,16 @@ Pneumatics::Pneumatics() : frc::Subsystem("Pneumatics") {
AddChild("Pressure Sensor", m_pressureSensor);
}
/**
* No default command
*/
void Pneumatics::InitDefaultCommand() {}
void Pneumatics::InitDefaultCommand() {
// No default command
}
/**
* Start the compressor going. The compressor automatically starts and stops as
* it goes above and below maximum pressure.
*/
void Pneumatics::Start() {
#ifndef SIMULATION
m_compressor.Start();
#endif
}
/**
* @return Whether or not the system is fully pressurized.
*/
bool Pneumatics::IsPressurized() {
#ifndef SIMULATION
return kMaxPressure <= m_pressureSensor.GetVoltage();
@@ -39,9 +31,6 @@ bool Pneumatics::IsPressurized() {
#endif
}
/**
* Puts the pressure on the SmartDashboard.
*/
void Pneumatics::WritePressure() {
frc::SmartDashboard::PutNumber("Pressure", m_pressureSensor.GetVoltage());
}