car using PID from centre line
Dependencies: FRDM-TFC mbed CBuffer XBEE mbed_angular_speed motor2 MMA8451Q
Fork of KL25Z_Camera_Test by
main.h
- Committer:
- FatCookies
- Date:
- 2016-11-29
- Revision:
- 13:4e77264f254a
- Parent:
- 12:da96e2f87465
- Child:
- 17:6ae90788cc2b
File content as of revision 13:4e77264f254a:
typedef struct { float Kp; float Ki; float Kd; float dt; float p_error; float pid_error; float integral; //Measured value is a float between -1.0 and 1.0 (from left to right) float measured_value; //Desired value is always 0.0 (as in, car is in the middle of the road) float desired_value; float derivative; float output; } pid_instance;