mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-10-19 11:55:06 +00:00
**New Features** * Added location services with GPS and network-based positioning, approximate or precise accuracy, and live status updates. * Added a Location Settings app to view status, control location access and accuracy, and manage GPS devices. * Added location choices during device setup and a location toggle in the system menu. * Added support for thread stacks in external memory when available, with fallback to existing memory options. **Improvements** * Wi-Fi and Bluetooth enabled states are saved when changed and applied at startup; separate “Enable on boot” switches are no longer shown in their management screens. * GPS setup can stop promptly when interrupted. * Improved device removal handling during startup and while references are outstanding. * Updated several device listings to no longer be marked as incubating.
24 lines
609 B
C++
24 lines
609 B
C++
// SPDX-License-Identifier: GPL-3.0
|
|
#pragma once
|
|
|
|
#include <gps/gps.h>
|
|
|
|
#include <atomic>
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
|
|
struct Device;
|
|
|
|
namespace gps_ublox {
|
|
|
|
void checksum(uint8_t* message, size_t length);
|
|
|
|
// From https://github.com/meshtastic/firmware/blob/7648391f91f2b84e367ae2b38220b30936fb45b1/src/gps/GPS.cpp#L128
|
|
uint8_t make_packet(uint8_t class_id, uint8_t message_id, const uint8_t* payload, uint8_t payload_size, uint8_t* buffer_out);
|
|
|
|
GpsModel probe(Device* uart, const std::atomic<bool>& interrupted);
|
|
|
|
bool init(Device* uart, GpsModel model, const std::atomic<bool>& interrupted);
|
|
|
|
}
|