FRC Paradigm Shift #1259
Documentation for the 2021 Robot
PIDLoaderFalcon.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <ctre/phoenix/motorcontrol/can/TalonFX.h>
4 #include <frc/SmartDashboard/SmartDashboard.h>
5 
6 #include <string>
7 
8 using namespace frc;
9 using namespace std;
10 using namespace ctre::phoenix::motorcontrol::can;
11 
12 
14 {
15 public:
16  PIDLoaderFalcon(string name, bool adjustable, double p, double i, double d, double ff);
17  PIDLoaderFalcon(string name, bool adjustable, double p, double i, double d, double ff, double max, double min);
18 
21  void Load(TalonFX& driveMotor);
22 
25  void LoadFromNetworkTable(TalonFX& driveMotor);
26 
27 private:
28  string m_name;
30 
31  double m_p;
32  double m_i;
33  double m_d;
34  double m_ff;
35  double m_max;
36  double m_min;
37 };
STL namespace.