# LED Patterns

## Boot

when Ranger boots, it will display a pattern on the LED to indicate which mode it is starting in.

| LED Pattern                                              | Description                           |
| -------------------------------------------------------- | ------------------------------------- |
| Single <mark style="color:orange;">Amber</mark> Blink    | 20° FOV Mode                          |
| Double <mark style="color:orange;">Amber</mark> Blink    | 15° FOV Mode                          |
| Triple <mark style="color:orange;">Amber</mark> Blink    | 27° FOV Mode                          |
| Quadruple <mark style="color:orange;">Amber</mark> Blink | DETECT mode                           |
| Continuous <mark style="color:red;">Red</mark> Blink     | Sensor failure, contact SWYFT support |
| <mark style="color:blue;">No LED</mark>                  | Power failure, contact SWYFT support  |

## Ranging (FOV Mode)

After boot, when in any FOV mode, ranger will use the LED to display the status of the data it receives.

| LED Pattern                              | Description                                                                                                                |
| ---------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| <mark style="color:green;">Green</mark>  | Ranging data is <mark style="color:green;">**good**</mark>, the strength of the green LED represents the distance measured |
| <mark style="color:orange;">Amber</mark> | Ranging data is <mark style="color:orange;">**ok**</mark>, either noisy or weak signal                                     |
| <mark style="color:red;">Red</mark>      | Ranging data is <mark style="color:red;">**bad**</mark>, target is missing or target is highly reflective                  |

## DETECT Mode

After boot, when in DETECT mode, ranger will use the LED to display if there is an object within its configured measurement window.

| LED Pattern                              | Description                                           |
| ---------------------------------------- | ----------------------------------------------------- |
| <mark style="color:green;">Green</mark>  | Object is present in the configured window.           |
| <mark style="color:orange;">Amber</mark> | Object is present, but outside the configured window. |
| <mark style="color:red;">Red</mark>      | Ranging data is bad, or no object is detected.        |

## DETECT Mode Configuration

| LED Pattern                                                    | Description                                                                                                             |
| -------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
| Continuous Slow <mark style="color:orange;">Amber</mark> Blink | Ranger is preparing to take ***minimum*** distance measurement                                                          |
| Continuous Fast <mark style="color:orange;">Amber</mark> Blink | Ranger is preparing to take ***maximum*** distance measurement                                                          |
| Solid <mark style="color:orange;">Amber</mark> LED             | Ranger is currently taking the measurement                                                                              |
| Quadruple <mark style="color:green;">Green</mark> Blink        | Measurement is <mark style="color:green;">**good**</mark>, and ***has*** updated previous measurement in flash memory.  |
| Quadruple <mark style="color:red;">Red</mark> Blink            | Measurement is <mark style="color:red;">**bad**</mark>, and ***has not*** updated previous measurement in flash memory. |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.swyftrobotics.com/electronics/swyft-ranger/led-patterns.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
