Commit Graph

899 Commits

Author SHA1 Message Date
Silvano Seva b3b057699b core: gps: skip active satellites with ID > 31
Some GPS modules can work on multiple systems at the same time. However,
the current code has been written only for GPS and, consequently is not
able to manage satellites with an ID greater than 32. This commit provides
an hotfix until all the GPS code gets refactored an extended to support
also GLONASS and Galileo.

Signed-off-by: Silvano Seva <silseva@fastwebnet.it>
2025-10-03 19:09:58 +02:00
Silvano Seva f2f84f3da1 core: gps: add enums for GPS fix quality and type
Signed-off-by: Silvano Seva <silseva@fastwebnet.it>
2025-10-03 19:09:58 +02:00
Silvano Seva 809f54cb1b core: gps: get position from GGA sentence
Moved retrieval of latitude and longitude coordinates from RMC to GGA
sentence. This prevents from having a valid fix but coordinates still
equal to 0.0, 0.0

Signed-off-by: Silvano Seva <silseva@fastwebnet.it>
2025-10-03 19:09:58 +02:00
Ryan Turner d2ddddf478 Fix incorrect include paths for platform-unique header files 2025-10-02 19:43:55 +02:00
Ryan Turner 00a4dbb063 style: resolve ambiguous paths on include macros
Update meson and cmake config to only include openrtx and platform paths.
Update files to use <..> for system and external libraries, ".." for
project files and new relative paths as necessary.

Did not attempt to fix areas where includes that should be <..> were
previously ".."

Inspired by #96, closes #359.

Acked-by: Silvano Seva <silseva@fastwebnet.it>
2025-09-28 17:27:45 +02:00
Silvano Seva c0d8984d09 core: dsp: drop dsp_invertPhase function
Signed-off-by: Silvano Seva <silseva@fastwebnet.it>
2025-09-28 14:12:20 +02:00
Silvano Seva 6db558e89c core: dsp: refactor DC block filter implementation
New DC block filter implementation using fixed-point math and guaranteeing
zero DC component on the output signal.

Signed-off-by: Silvano Seva <silseva@fastwebnet.it>
2025-09-28 14:12:20 +02:00
Silvano Seva d092c51df5 ui: settings: add CTCSS enable to FM settings menu
Added the ability to manage CTCSS enablement via the FM settings menu.
As part of this, refactored the existing instances of setting and
displaying this value on the main vfo screen and on the macro menu.

Acked-by: Silvano Seva <silseva@fastwebnet.it>
2025-09-22 21:55:55 +02:00
imostlylurk f7e5e45d09 ui: settings: introduce FM settings menu option
This seeks to create a place for settings on the FM mode that complement
the quick actions available from the macro menu. This way as more FM mode
features are added, there is a menu to configure them in.

Co-authored-by: Ryan Turner <ryan@turnrye.com>
Acked-by: Silvano Seva <silseva@fastwebnet.it>
2025-09-22 21:54:26 +02:00
imostlylurk 2df9addccc ui: refactor CTCSS entries in macro menu to be more user friendly
This change makes it so that the macro menu shows the current tone and
change the tone setting with macro 1, then change tone frequency with
macro 2 and 3. This is a clearer UX.

Co-authored-by: Ryan Turner <ryan@turnrye.com>
Acked-by: Silvano Seva <silseva@fastwebnet.it>
2025-09-22 21:51:06 +02:00
Silvano Seva a30dae357d ui: fix misspelled strings
Signed-off-by: Silvano Seva <silseva@fastwebnet.it>
2025-09-21 18:52:08 +02:00
romanat 3add35275c ui: battery: add menu entry to select between icon or percentage 2025-09-18 19:43:08 +02:00
Silvano Seva 76b8d191b0 core: gps: clear the RTC update request flag when sync is done
Once the RTC has been synchronized with GPS time, set the gps_set_time
flag back to false. This resets also the corresponding ON/OFF menu entry,
providing both a feedback that the operation is done and allowing the user
to just set it back to ON in case a new synchronization is needed.
2025-08-25 21:31:00 +02:00
Silvano Seva 2f0b7f8df7 core: gps: added field for HDOP to GPS data
HDOP is expressed in cm, meaning that an HDOP of 1.37m is stored as 137 in
the GPS data structure.
2025-08-25 21:31:00 +02:00
Silvano Seva 40ff9baa47 ui: gps: added indication for no GPS device detected
Clearly show on UI the case when no GPS receiver has been detected in the
hardware. Previously either the "GPS off" or "No fix" strings where shown
also in case of no GPS, causing ambiguity.
2025-08-15 20:07:32 +02:00
Silvano Seva 72845e4c1f core: gps: use new gps device API 2025-08-15 20:00:20 +02:00
Silvano Seva 280d5ad350 Fixed compilation errors with GCC 15.1 2025-07-08 21:36:25 +02:00
Silvano Seva 0962b533c7 core: battery: added Li-Ion battery type, updated targets accordingly 2025-07-08 21:18:41 +02:00
Silvano Seva 71c144d426 core: battery: split configurations for battery chemistry and cells number 2025-07-05 14:05:49 +02:00
Silvano Seva 03d1ae5546 Updated year in copyright headers 2025-04-04 21:15:39 +02:00
Silvano Seva 23b16053df Audio stream: fixed early start of input stream when in liner buffer mode 2025-04-02 19:31:50 +02:00
Silvano Seva 15a544e2ad DM-1701: radio driver 2025-04-02 19:28:22 +02:00
Silvano Seva fb9dd20147 CS7000P: added radio driver 2025-03-26 19:58:14 +01:00
Silvano Seva 959e9df457 Added support for STM32H743 MCU 2025-03-16 17:50:19 +01:00
Silvano Seva 68b001310e CS7000: radio driver 2025-03-16 10:13:00 +01:00
Jim Ancona b16c3c0fd1 M17: replaced std::experimental::array with std:array 2025-03-01 20:01:08 +01:00
Jim Ancona 5b7f835817 Small code changes to support emulator build on MacOS 2025-03-01 20:01:06 +01:00
Silvano Seva 1099f0f7a3 CPS: added enumeration type for CTCSS tone index 2025-03-01 19:01:10 +01:00
Silvano Seva 4f791a8f09 M17: FrameDecoder: decodeLich: added validation of LICH chunk number 2025-02-11 19:01:34 +01:00
Grzegorz Kaczmarek d3329224a9 UI: wake up display on volume changes 2025-01-29 09:07:47 +01:00
Silvano Seva 27d04aab2b Voice prompts: fixed extra leading zero when announcing the kHz part of a frequency 2024-12-26 16:59:18 +01:00
Trriss 185d3f1a22 UI: fixed RSSI to S-level conversion in gfx_drawSmeter and gfx_drawSmeterLevel 2024-12-26 16:19:03 +01:00
Wojciech Kaczmarski 9786e80e72 M17: FrameEncoder: fixed wrong frame number mask 2024-10-25 18:54:42 +02:00
Silvano Seva 847750e233 Added volume level to device state data structure.
Added filtered volume level to device state. Value is updated at 10Hz and
filtering is done by averaging the current value with the new sample.
2024-10-25 18:48:58 +02:00
Silvano Seva 2d0bf51873 MDUV3x0: using HR_C6000 for MCU to speaker audio 2024-10-12 12:24:05 +02:00
Silvano Seva 8f9502cade MDUV3x0: updated radio driver 2024-10-09 22:00:10 +02:00
Silvano Seva 565a056e82 Added macros for thread priority levels 2024-10-08 18:44:08 +02:00
Silvano Seva 5b9cc789b9 Refactored NVM data structures and functions 2024-08-14 18:20:05 +02:00
Silvano Seva 079b57e383 Updated authors' list 2024-07-12 19:01:24 +02:00
Silvano Seva ecea0186a0 UI: made authors' list scrollable 2024-07-12 19:00:59 +02:00
Silvano Seva a6f01c3e55 Small refactoring of M17 modulator.
- made start() function return a boolean indicating the actual modulator status
- moved sending of preamble to a dedicated function
- renamed send() function to sendFrame()
2024-07-12 11:11:44 +02:00
Silvano Seva c60445d5be UI: exit from macro menu on PTT press 2024-07-12 08:13:30 +02:00
Silvano Seva e2c70bd4fd CPS: fixed wrong TX power in default channel values 2024-07-12 08:03:51 +02:00
Silvano Seva b1a18d0b8e UI: fixed overlapped text on macro menu 2024-07-12 08:02:17 +02:00
Morgan Diepart 4c240a38be UI: fixed locked callsign entry after hash keypress 2024-07-10 09:16:18 +02:00
Morgan Diepart 9cae1cfd3e UI: improved handling of numeric input.
Updated isNumberPressed() to make it not return anymore true if star or hash keys are pressed. Check
for character input, star and hash keys included, is now done by the input_isCharPressed function.
This separation also now prevents from entering non numeric characters during VFO frequency input.
2024-07-10 09:16:18 +02:00
Silvano Seva 84d9803f57 Module17: hide menu entries for soft potentiometers if hardware does not have them 2024-06-21 19:27:33 +02:00
Morgan Diepart 4f2c461bf0 Module17: added detection of baseband soft potentiometers
Detects the presence of the soft potentiometers. Display the detected potentiometers in the info menu.
2024-06-21 19:26:32 +02:00
Morgan Diepart 30e9311a20 Module17: added support for hardware revision 1.0 2024-06-21 19:26:31 +02:00
marco f833ace5ca UI: fixed issue with overflowing text input buffer 2024-06-21 09:58:08 +02:00