2022-Robot
Robot code for 2022 FRC Season by Argos, FRC team #1756
Loading...
Searching...
No Matches
Constants.h File Reference
#include <frc/PneumaticsModuleType.h>
#include <units/length.h>
#include <units/velocity.h>
#include <string>
#include "constants/addresses.h"
#include "constants/climber_setpoints.h"
#include "constants/control_loops.h"
#include "constants/interpolation_maps.h"
#include "constants/measure_up.h"
#include "constants/motors.h"
#include "networktables/NetworkTable.h"
#include "networktables/NetworkTableInstance.h"

Go to the source code of this file.

Namespaces

namespace  threshholds
 
namespace  threshholds::intake
 
namespace  threshholds::shooter
 
namespace  speeds
 
namespace  speeds::intake
 
namespace  speeds::drive
 
namespace  pneumatics
 
namespace  pneumatics::comp_bot
 
namespace  pneumatics::comp_bot::module
 
namespace  pneumatics::practice
 
namespace  pneumatics::practice::module
 
namespace  pneumatics::directions
 
namespace  camera
 
namespace  indexes
 
namespace  indexes::swerveModules
 
namespace  paths
 
namespace  networkTables
 
namespace  networkTables::swerveHomes
 
namespace  networkTables::swerveHomes::keys
 

Variables

const auto threshholds::intake::intakeDeactivate = 8_in
 
const auto threshholds::intake::intakeActivate = 8_in
 
constexpr auto threshholds::shooter::acceptableTurretError = 1.0_deg
 
constexpr auto threshholds::shooter::acceptableHoodError = 0.5_deg
 
constexpr auto threshholds::shooter::acceptableWheelError = 200_rpm
 
constexpr auto threshholds::shooter::acceptableRangeTime = 250_ms
 
constexpr auto threshholds::shooter::shooterTimer = 350_ms
 
constexpr double speeds::intake::beltForwardIntake = 0.5
 
constexpr double speeds::intake::beltForwardShoot = 0.65
 
constexpr double speeds::intake::beltFirstShot = 1
 
constexpr double speeds::intake::beltReverse = -0.8
 
constexpr double speeds::intake::intakeCreep = 0.5
 
constexpr double speeds::intake::intakeForward = 1
 
constexpr double speeds::intake::intakeSlowForward = 0.6
 
constexpr double speeds::intake::intakeReverse = -1
 
constexpr units::velocity::feet_per_second_t speeds::drive::maxAngular = 12_fps
 
constexpr auto pneumatics::comp_bot::module::moduleType = frc::PneumaticsModuleType::CTREPCM
 
constexpr uint pneumatics::comp_bot::module::moduleAddr = 0
 
constexpr auto pneumatics::practice::module::moduleType = frc::PneumaticsModuleType::REVPH
 
constexpr uint pneumatics::practice::module::moduleAddr = 1
 
constexpr bool pneumatics::directions::intakeExtend = true
 
constexpr bool pneumatics::directions::intakeRetract = false
 
constexpr char camera::targetingPipeline = 0
 
constexpr char camera::driverPipeline = 1
 
constexpr int camera::horizontalPixelResolution = 320
 
constexpr int camera::verticalPixelResolution = 240
 
constexpr auto camera::horizontalAngleResolution = 54_deg
 
constexpr auto camera::verticalAngleResolution = 41_deg
 
constexpr char indexes::swerveModules::frontLeftIndex = 0
 
constexpr char indexes::swerveModules::frontRightIndex = 1
 
constexpr char indexes::swerveModules::backRightIndex = 2
 
constexpr char indexes::swerveModules::backLeftIndex = 3
 
const std::string paths::swerveHomesPath = "homes/swerveHomes"
 
const std::string paths::turretHomePath = "homes/turretHome"
 
const std::string networkTables::swerveHomes::tableKey = "Argos"
 
const std::string networkTables::swerveHomes::keys::flHome = "swerveHomes/flHome"
 
const std::string networkTables::swerveHomes::keys::frHome = "swerveHomes/frHome"
 
const std::string networkTables::swerveHomes::keys::brHome = "swerveHomes/brHome"
 
const std::string networkTables::swerveHomes::keys::blHome = "swerveHomes/blHome"
 
const std::string networkTables::swerveHomes::keys::flHomeFullPath = "swerveHomes/flHome"
 
const std::string networkTables::swerveHomes::keys::frHomeFullPath = "swerveHomes/frHome"
 
const std::string networkTables::swerveHomes::keys::brHomeFullPath = "swerveHomes/brHome"
 
const std::string networkTables::swerveHomes::keys::blHomeFullPath = "swerveHomes/blHome"