mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
[docs] Fix wpilibj JavaDoc warnings (#6154)
This commit is contained in:
@@ -40,9 +40,9 @@ void DMA::SetPause(bool pause) {
|
||||
FRC_CheckErrorStatus(status, "SetPause");
|
||||
}
|
||||
|
||||
void DMA::SetTimedTrigger(units::second_t seconds) {
|
||||
void DMA::SetTimedTrigger(units::second_t period) {
|
||||
int32_t status = 0;
|
||||
HAL_SetDMATimedTrigger(dmaHandle, seconds.value(), &status);
|
||||
HAL_SetDMATimedTrigger(dmaHandle, period.value(), &status);
|
||||
FRC_CheckErrorStatus(status, "SetTimedTrigger");
|
||||
}
|
||||
|
||||
|
||||
@@ -23,13 +23,14 @@ DriverStationModeThread::~DriverStationModeThread() {
|
||||
}
|
||||
}
|
||||
|
||||
void DriverStationModeThread::InAutonomous(bool entering) {
|
||||
m_userInAutonomous = entering;
|
||||
}
|
||||
void DriverStationModeThread::InDisabled(bool entering) {
|
||||
m_userInDisabled = entering;
|
||||
}
|
||||
|
||||
void DriverStationModeThread::InAutonomous(bool entering) {
|
||||
m_userInAutonomous = entering;
|
||||
}
|
||||
|
||||
void DriverStationModeThread::InTeleop(bool entering) {
|
||||
m_userInTeleop = entering;
|
||||
}
|
||||
|
||||
@@ -12,11 +12,6 @@
|
||||
using namespace frc;
|
||||
using namespace frc::sim;
|
||||
|
||||
PneumaticsBaseSim::PneumaticsBaseSim(int module) : m_index{module} {}
|
||||
|
||||
PneumaticsBaseSim::PneumaticsBaseSim(const PneumaticsBase& module)
|
||||
: m_index{module.GetModuleNumber()} {}
|
||||
|
||||
std::shared_ptr<PneumaticsBaseSim> PneumaticsBaseSim::GetForType(
|
||||
int module, PneumaticsModuleType type) {
|
||||
switch (type) {
|
||||
@@ -31,3 +26,8 @@ std::shared_ptr<PneumaticsBaseSim> PneumaticsBaseSim::GetForType(
|
||||
static_cast<int>(module));
|
||||
}
|
||||
}
|
||||
|
||||
PneumaticsBaseSim::PneumaticsBaseSim(int module) : m_index{module} {}
|
||||
|
||||
PneumaticsBaseSim::PneumaticsBaseSim(const PneumaticsBase& module)
|
||||
: m_index{module.GetModuleNumber()} {}
|
||||
|
||||
@@ -18,8 +18,8 @@ UltrasonicSim::UltrasonicSim(int ping, int echo) {
|
||||
m_simRange = deviceSim.GetDouble("Range (in)");
|
||||
}
|
||||
|
||||
void UltrasonicSim::SetRangeValid(bool isValid) {
|
||||
m_simRangeValid.Set(isValid);
|
||||
void UltrasonicSim::SetRangeValid(bool valid) {
|
||||
m_simRangeValid.Set(valid);
|
||||
}
|
||||
|
||||
void UltrasonicSim::SetRange(units::inch_t range) {
|
||||
|
||||
Reference in New Issue
Block a user