PID Loops

Hey I’m a beginner programmer having trouble learning PID loops any help please? I would just like a brief crash course of how it works and some examples would be amazing.

This applied to raising an arm could be something like
motor[armMotor]=.2(goalLocation-sensorValue[Pot]);

Here is my favorite guide for an in depth understanding of all of PID. Written by one of the forum members here.

http://georgegillard.com/documents/2-introduction-to-pid-controllers

Thank you very much so when u talk about converting sensor values I imagine I gain the sensor values from sensors as in a potentiometer to tell the robot when to stop and when to actually start.

Here you go – step by step walkthrough on how to make a PID target control function.

Thanks! Hey what do you use for programming for robotc?