I mean
Even though I only did P and D, it wasn’t much
Error is the difference between your target (like the correct altitude) and current input (like the altitude ur at rn)
Proportional is just error multiplied by a variable
Derivative is the current error minus previous error, divided by a different variable