curiousembedder/l26_dr_driver

1.0.0

Latest
uploaded 6 days ago
Driver for the Quectel L26-DR GNSS / dead-reckoning module.

Readme

# L26_DR_driver

ESP-IDF driver for the **Quectel L26-DR** GNSS / dead-reckoning module.

| | |
|---|---|
| **Version** | 1.0.0 |
| **Tested IDF** | v5.5 |

## Install

```bash
idf.py add-dependency "<your-namespace>/L26_DR_driver==1.0.0"
```

```c
#include "L26-dr.h"

void app_main(void)
{
    gps_config_t cfg = GPS_CONFIG_DEFAULT();   // UART1, TX=42, RX=41, 115200
    // Override per board as needed:
    // cfg.uart_num = UART_NUM_2;
    // cfg.tx_pin   = 17;
    // cfg.rx_pin   = 16;

    gps_init(&cfg);

    while (true) {
        gps_read();
        if (gps_data.fix_valid) {
            printf("lat=%.6f lon=%.6f sats=%d\n",
                   gps_data.latitude, gps_data.longitude, gps_data.satellites);
        }
        vTaskDelay(pdMS_TO_TICKS(1000));
    }
}
```

## API

| Function | Description |
|---|---|
| `void gps_init(const gps_config_t *config)` | Configure UART + driver |
| `void gps_read(void)` | Parse pending NMEA sentences |
| `char *gps_get_time(void)` | Last UTC time string |
| `char *gps_get_date(void)` | Last date string |

See [`include/L26-dr.h`](include/L26-dr.h) for the full type definitions.

Links

Target

To add this component to your project, run:

idf.py add-dependency "curiousembedder/l26_dr_driver^1.0.0"

download archive

Stats

  • Archive size
    Archive size ~ 16.40 KB
  • Downloaded in total
    Downloaded in total 0 times
  • Downloaded this version
    This version: 0 times

Badge

curiousembedder/l26_dr_driver version: 1.0.0
|