2024-Robot
Robot code for 2024 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/time.h>
#include <units/velocity.h>
#include <string>
#include "constants/addresses.h"
#include "constants/control_loops.h"
#include "constants/encoders.h"
#include "constants/feature_flags.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  speeds
 
namespace  speeds::drive
 
namespace  indexes
 
namespace  indexes::swerveModules
 
namespace  paths
 
namespace  networkTables
 
namespace  networkTables::swerveHomes
 
namespace  networkTables::swerveHomes::keys
 
namespace  leds
 
namespace  camera
 

Enumerations

enum class  ApproachDirection { Increasing , Decreasing }
 Designate the threshold approach direction. More...
 

Variables

constexpr double speeds::drive::aimBotMaxBias = 0.6
 
constexpr double speeds::drive::aimBotThresh = 0.1
 
constexpr double speeds::drive::lateralInertialWeight = 15.0
 
constexpr double speeds::drive::medialInertialWeight = 5.0
 
constexpr double speeds::drive::aimSpeedReductionPct = 0.4
 
constexpr double speeds::drive::passSpeedReductionPct = 0.5
 
constexpr double speeds::drive::generalSpeedReductionPct = 0.75
 
constexpr double speeds::drive::rotationalProportionality = 0.011
 
constexpr units::velocity::feet_per_second_t speeds::drive::maxAngular = 12_fps
 
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 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"
 
constexpr units::time::second_t leds::requestLen = 2_s
 
constexpr char camera::reflectivePipeline = 1
 
constexpr char camera::aprilTagPipeline = 0
 
constexpr int camera::horizontalPixelResolution = 320
 
constexpr int camera::verticalPixelResolution = 240
 
constexpr auto camera::horizontalAngleResolution = 63.3_deg
 
constexpr auto camera::halfhorizontalAngleResolution = horizontalAngleResolution / 2
 
constexpr auto camera::verticalAngleResolution = 49.7_deg
 

Enumeration Type Documentation

◆ ApproachDirection

enum class ApproachDirection
strong

Designate the threshold approach direction.

Enumerator
Increasing 
Decreasing