JMotor
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
JSwerveAngleControlLoopP Class Reference

#include <JSwerveAngleControlLoopP.h>

Inheritance diagram for JSwerveAngleControlLoopP:
Inheritance graph
[legend]
Collaboration diagram for JSwerveAngleControlLoopP:
Collaboration graph
[legend]

Public Member Functions

 JSwerveAngleControlLoopP (float _kP, float _range)
 
float calculate (float error)
 

Public Attributes

float kP = 0
 
float range = 0
 

Constructor & Destructor Documentation

◆ JSwerveAngleControlLoopP()

JSwerveAngleControlLoopP::JSwerveAngleControlLoopP ( float  _kP,
float  _range 
)
inline

Member Function Documentation

◆ calculate()

float JSwerveAngleControlLoopP::calculate ( float  error)
inlinevirtual

Reimplemented from JSwerveAngleControlLoop.

Member Data Documentation

◆ kP

float JSwerveAngleControlLoopP::kP = 0

◆ range

float JSwerveAngleControlLoopP::range = 0

The documentation for this class was generated from the following file: