src/main/cpp/subsystems/Rocky/DriveTrainSubsystemRocky.cpp
units::degree_t DriveTrainSubsystemRocky::GyroGetAngle()
{
#ifndef NOHW
  m_gyroAngle = m_gyro.GetAngle();
  //frc::SmartDashboard::PutNumber("GyroAngle", m_gyroAngle);
  return m_gyroAngle;
#else
  return 0_deg;
#endif
}
//function made for debugging with gyro and easy changes
function made for debugging with gyro and easy changes
function made for debugging with gyro and easy changes
units::degree_t DriveTrainSubsystemRocky::GyroGetAngle()
{
#ifndef NOHW
  m_gyroAngle = m_gyro.GetAngle();
  return m_gyroAngle;
#else
  return 0_deg;
#endif
}
units :: degree_t DriveTrainSubsystemRocky :: GyroGetAngle ( ) { #ifndef NOHW m_gyroAngle = m_gyro . GetAngle ( ) ; return m_gyroAngle ; #else return 0 _deg ; #endif }
function made for debugging with gyro and easy changes
function made for debugging with gyro and easy changes
//frc::SmartDashboard::PutNumber("GyroAngle", m_gyroAngle);