---
# System prepended metadata

title: Controlador P
tags: [AR]

---

###### tags: `AR`

# Controlador P
![](https://i.imgur.com/MF41GhL.png)


```
sp = 500

loop:
    s = llegir sensor
    err = (sp-s)*K
    if err >0
        roda dreta = err
    else 
        roda esquerra = err*(-1)

```