|
TR-mbed 1.0
|
#include "base_robot/BaseRobot.h"#include "util/algorithms/general_functions.h"#include "ResetReason.h"#include "subsystems/ChassisSubsystem.h"#include "subsystems/ShooterSubsystem.h"#include "subsystems/TurretSubsystem.h"#include "util/communications/CANHandler.h"#include "util/communications/PwmIn.h"#include "util/communications/jetson/Jetson.h"#include "util/motor/DJIMotor.h"#include "util/peripherals/imu/BNO055.h"#include "util/peripherals/encoder/MA4.h"#include "util/peripherals/imu/ISM330.h"#include <algorithm>#include <pinmap.h>#include <us_ticker_api.h>#include <us_ticker_defines.h>Classes | |
| class | Sentry |
Functions | |
| int | main () |
Variables | |
| constexpr auto | IMU_I2C_SDA = PB_7 |
| constexpr auto | IMU_I2C_SCL = PB_8 |
| constexpr auto | IMU_RESET = PA_8 |
| constexpr float | PITCH_LOWER_BOUND {-22.0} |
| constexpr float | PITCH_UPPER_BOUND {20.0} |
| constexpr float | JOYSTICK_YAW_SENSITIVITY_DPS = 300 |
| constexpr float | JOYSTICK_PITCH_SENSITIVITY_DPS = 150 |
| constexpr float | MOUSE_SENSITIVITY_YAW_DPS = 1.0 |
| constexpr float | MOUSE_SENSITIVITY_PITCH_DPS = 1.0 |
| constexpr PID::config | YAW_VEL_PID = {181, 3.655 * 10e-3, 4.51 * 7.5, 32000, 1000} |
| constexpr PID::config | YAW_POS_PID = {1, 0, 0, 45, 2} |
| const float | yaw_static_friction = -150 |
| const float | yaw_kinetic_friction = 0 |
| constexpr PID::config | PITCH_VEL_PID = {173.8994, 4.898 * 10e-6, 12.474 * 10e3, 16000, 2000} |
| constexpr PID::config | PITCH_POS_PID = {1, 0, 0,30,2} |
| const float | pitch_gravity_feedforward = -1200 |
| const float | pitch_static_friction = 0 |
| const float | pitch_kinetic_friction = 0 |
| constexpr PID::config | FL_VEL_CONFIG = {2.58, 0.23 * 1e-3, 17.3 * 1e-3} |
| constexpr PID::config | FR_VEL_CONFIG = {2.75, 0.574 * 1e-3, 17.9 * 1e-3} |
| constexpr PID::config | BL_VEL_CONFIG = {4.1, 0.0523 * 1e-3, 10.9 * 1e-3} |
| constexpr PID::config | BR_VEL_CONFIG = {3.9, 0.159 * 1e-3, 26.1 * 1e-3} |
| constexpr PID::config | FLYWHEEL_L_PID = {7.1849, 0.000042634, 0} |
| constexpr PID::config | FLYWHEEL_R_PID = {7.1849, 0.000042634, 0} |
| constexpr PID::config | INDEXER_PID_VEL = {2.7, 0.001, 0} |
| constexpr PID::config | INDEXER_PID_POS = {0.1, 0, 0.001} |
| TurretSubsystem::config | turret_config |
| ShooterSubsystem::config | shooter_config |
| ChassisSpeeds | des_chassis_state |
| TurretSubsystem::TurretInfo | des_turret_state |
| ShootState | des_shoot_state |
| int | remoteTimer = 0 |
| float | pitch_desired_angle = 0.0 |
| float | yaw_desired_angle = 0.0 |
| float | dt_global = 0.0 |
| unsigned long | timer = 0 |
| IMU::EulerAngles | imuAngles |
| int main | ( | ) |
|
constexpr |
|
constexpr |
| ChassisSpeeds des_chassis_state |
| ShootState des_shoot_state |
| TurretSubsystem::TurretInfo des_turret_state |
| float dt_global = 0.0 |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
| IMU::EulerAngles imuAngles |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
| float pitch_desired_angle = 0.0 |
| const float pitch_gravity_feedforward = -1200 |
| const float pitch_kinetic_friction = 0 |
|
constexpr |
|
constexpr |
| const float pitch_static_friction = 0 |
|
constexpr |
|
constexpr |
| int remoteTimer = 0 |
| ShooterSubsystem::config shooter_config |
| unsigned long timer = 0 |
| TurretSubsystem::config turret_config |
| float yaw_desired_angle = 0.0 |
| const float yaw_kinetic_friction = 0 |
|
constexpr |
| const float yaw_static_friction = -150 |
|
constexpr |