WALL-E Version 1.0
The "WALL-E" Project is a ME 507 quarter term project inspired to recreate the robot WALL-E. The WALL-E robot is a fully 3D printed robot with modified components in order to fit the needs of the chosen peripherals and electronics. WALL-E contains a custom made PCB which is housed in the main body of WALL-E. WALL-E's peripherals and components include 2 pololu Romi Motors with encoders, 4 MG90s servos, BNO055 IMU, and a OV2640 ArduCam camera. The objective of WALL-E is to scan the surrounding area for the closest object to it. Once that object is detected, WALL-E drives up to the object, attempts to pick up or hold the object and detect the color of the object.
Loading...
Searching...
No Matches
PIDController Class Reference

PID Controller class for sensor fusion and motor controls when driving to and near an object. More...

#include <pidController.h>

Public Member Functions

 PIDController (float kp, float ki, float kd)
 Constructor Fucntion for PID Controller Class.
void reset ()
 Resets Values of PID.
void setTunings (float kp, float ki, float kd)
 Function sets the tuning variables for the PID Controller.
float update (float error, float dt)
 Function updates the PID based on the new error values and adjusts.

Private Attributes

float Kp
float Ki
float Kd
float prevError
float integral

Detailed Description

PID Controller class for sensor fusion and motor controls when driving to and near an object.

Constructor & Destructor Documentation

◆ PIDController()

PIDController::PIDController ( float kp,
float ki,
float kd )

Constructor Fucntion for PID Controller Class.

Member Function Documentation

◆ reset()

void PIDController::reset ( )

Resets Values of PID.

Returns
None

◆ setTunings()

void PIDController::setTunings ( float kp,
float ki,
float kd )

Function sets the tuning variables for the PID Controller.

Returns
None

◆ update()

float PIDController::update ( float error,
float dt )

Function updates the PID based on the new error values and adjusts.

Returns
None

Member Data Documentation

◆ integral

float PIDController::integral
private

◆ Kd

float PIDController::Kd
private

◆ Ki

float PIDController::Ki
private

◆ Kp

float PIDController::Kp
private

◆ prevError

float PIDController::prevError
private

The documentation for this class was generated from the following files:
  • C:/Users/arath/OneDrive/Documents/ME 507/Project-WALLE/Code/Inc/pidController.h
  • C:/Users/arath/OneDrive/Documents/ME 507/Project-WALLE/Code/src/pidController.cpp