> For the complete documentation index, see [llms.txt](https://pekaway.gitbook.io/van-pi-dokumentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pekaway.gitbook.io/van-pi-dokumentation/position/lagesensor.md).

# Lagesensor

#### Konfiguration des Lagesensors

1. **Webinterface aufrufen**
2. Öffnen Sie das Webinterface unter `http://*IP*:1880/ui`.
3. **Einstellungen aufrufen**
4. Navigieren Sie zu:
5. **Config → Sensors → Position Sensor Config**
6. **Lagesensor konfigurieren**
   * Passen Sie die Einstellungen des Lagesensors entsprechend der Einbauposition im Fahrzeug an.
   * Verwenden Sie dazu die Tabelle, um die erforderlichen Werte zu übernehmen.
7. **Kalibrierung durchführen**
   * Stellen Sie sicher, dass das Fahrzeug gerade ausgerichtet ist.
   * Drücken Sie anschließend **"Calibrate Position Sensor"**, um die Kalibrierung zu starten.
8. **Abschluss der Konfiguration**
9. Nach erfolgreicher Konfiguration kann der Lagesensor über das Webinterface oder die App verwendet werden.

| Position in Fahrtrichtung                       | Invert X | Invert Y | Swap X-Y | Swap X-Z | Swap Y-Z |
| ----------------------------------------------- | -------- | -------- | -------- | -------- | -------- |
| Wand Links Quer (Relays nach Unten)             | x        | x        | x        | -        | x        |
| Wand Links Quer 180 (Relays nach Oben)          | x        | -        | x        | -        | x        |
| Wand Links Hochformat (Relays nach Vorne)       | -        | x        | -        | x        | -        |
| Wand Links Hochformat 180 (Relays nach Hinten)  | x        | -        | -        | x        | -        |
|                                                 | Invert X | Invert Y | Swap X-Y | Swap X-Z | Swap Y-Z |
| Wand Rechts Quer (Relays nach Unten)            | -        | -        | x        | -        | x        |
| Wand Rechts Quer 180 (Relays nach Oben)         | -        | x        | x        | -        | x        |
| Wand Rechts Hochformat (Relays nach Vorne)      | -        | x        | -        | x        | -        |
| Wand Rechts Hochformat 180 (Relays nach Hinten) | -        | -        | -        | x        | -        |
|                                                 | Invert X | Invert Y | Swap X-Y | Swap X-Z | Swap Y-Z |
| Wand Vorne Quer (Relays nach Unten)             | -        | x        | -        | -        | x        |
| Wand Vorne Quer 180 (Relays nach Oben)          | x        | x        | -        | -        | x        |
| Wand Vorne Hochformat (Relays nach Vorne)       | -        | x        | x        | x        | -        |
| Wand Vorne Hochformat 180 (Relays nach Hinten)  | x        | x        | x        | x        | -        |
|                                                 | Invert X | Invert Y | Swap X-Y | Swap X-Z | Swap Y-Z |
| Wand Hinten Quer (Relays nach Unten)            | x        | -        | -        | -        | x        |
| Wand Hinten Quer 180 (Relays nach Oben)         | -        | -        | -        | -        | x        |
| Wand Hinten Hochformat (Relays nach Vorne)      | -        | -        | x        | x        | -        |
| Wand Hinten Hochformat 180 (Relays nach Hinten) | x        | -        | x        | x        | -        |
|                                                 | Invert X | Invert Y | Swap X-Y | Swap X-Z | Swap Y-Z |
| Boden Fahrtrichtung (Relays nach hinten)        | -        | -        | -        | -        | -        |
| Boden Fahrtrichtung 180 (Relays nach Vorne)     | x        | x        | -        | -        | -        |
| Boden Quer (Relays nach Rechts)                 | -        | x        | x        | -        | -        |
| Boden Quer 180 (Relays nach Links)              | x        | -        | x        | -        | -        |
|                                                 | Invert X | Invert Y | Swap X-Y | Swap X-Z | Swap Y-Z |
| Decke Fahrtrichtung (Relays nach hinten)        | x        | -        | -        | -        | -        |
| Decke Fahrtrichtung (Relays nach vorne)         | -        | x        | -        | -        | -        |
| Decke Quer (Relays nach Rechts)                 | -        | -        | x        | -        | -        |
| Decke Quer 180 (Relays nach Links)              | x        | x        | x        | -        | -        |
