Silvano Seva
a5209d6f52
Modified range for display backlight level from 0 - 255 to 0 - 100, set minimum allowed level to 5.
2022-02-26 15:45:41 +01:00
tarxvf
9297c08b05
Add a menu for clearing settings and vfo to sane defaults ( #67 )
2022-02-26 12:42:28 +01:00
Silvano Seva
756812ca31
Created function for writing settings and VFO status to NVM, starting of temporary implementation writing data to the MCU's internal flash
2021-11-08 22:22:26 +01:00
Silvano Seva
c91e306026
Reorganised settings data structure
2021-11-08 21:44:33 +01:00
Federico Amedeo Izzo
1e19574fd6
Add destination callsign input for M17, Add -/ to keypad input
2021-10-09 18:53:28 +02:00
Niccolò Izzo
eea9be3349
Add M17 codeplug data structures
2021-09-03 16:44:57 +02:00
Silvano Seva
4d3eacc144
Switched 'v_bat' and 'charge' fields of state struct from float to, respectively, uint16_t and uint8_t and updated UI functions accordingly. Rationale for this change is providing better support for future platforms without hardware floating point unit.
2021-08-14 12:56:45 +02:00
Silvano Seva
a850f9f1ab
Removed packed attribute from rtx and radio state data structures as they can cause crashes due to unaligned memory accesses.
2021-04-15 21:24:26 +02:00
Federico Amedeo Izzo
341c46a263
Now state.time is UTC, add functions to convert from UTC to local and reverse
2021-04-10 15:39:59 +02:00
Silvano Seva
86f6d114e2
Applied __attribute__((packed)) to all data structures to reduce memory footprint
2021-03-26 18:11:22 +01:00
Silvano Seva
416ae13eb1
Fixed linking error when building for linux
2021-02-23 14:01:09 +01:00
Silvano Seva
d0e8d15389
Added 'packed' attribute to settings data structure. Some refactoring of settings and state code.
2021-02-21 19:25:09 +01:00
Federico Amedeo Izzo
35bde9bccb
Add state_terminate() that saves settings to flash
2021-02-21 16:44:31 +01:00
Niccolò Izzo
4d66d8b1af
Fix various warnings
2021-02-17 11:21:46 +01:00
Federico Amedeo Izzo
cecd01e03d
GPS: workaround: Move settings above gps_data to avoid settings
...
corruption caused by gps_data overflow
2021-02-16 22:44:21 +01:00
Federico Amedeo Izzo
66af402e83
Move settings from UI to State
2021-02-13 20:32:53 +01:00
Niccolò Izzo
a163bc6998
Fix a bug where only satellites with a low id were marked active
2021-02-13 13:49:03 +01:00
Niccolò Izzo
7577b4d6ae
Improved algorithm for keeping track of active satellites
2021-02-13 13:27:06 +01:00
Federico Amedeo Izzo
b3e0f964a1
State: remove unused variable channelInfoUpdated
2021-02-13 11:24:05 +01:00
Niccolò Izzo
c7e8a258f3
Add active satellite field in GPS data
...
Now for each satellite in view we are keeping track if it's part of a
fix or not. This information is represented by a yellow color in the bar
graph screen.
2021-02-13 11:20:06 +01:00
Niccolò Izzo
b570f3b690
Add GPS altitude parsing
2021-02-11 09:43:51 +01:00
Niccolò Izzo
0ce92f991c
Add GPS NMEA parsing task
...
Add dedicated task to parse NMEA sentences received by the GPS module.
The parsed data is moved to the radio state, to be read by the user
interface.
2021-02-08 17:25:11 +01:00
Niccolò Izzo
67195d178f
Add GPS data structures in radio state
2021-02-06 15:37:14 +01:00
Federico Amedeo Izzo
438540290b
UI: Add MEM channel filtering per zone
2021-01-31 14:14:54 +01:00
Federico Amedeo Izzo
1f240ba132
Move brightness from state_t to settings_t, add Contrast
2021-01-29 22:13:47 +01:00
Niccolò Izzo
364f8d4e46
Add squelch visualization and control from macro menu
2021-01-28 12:51:22 +01:00
Niccolò Izzo
90445e29a7
Implement voltage to dBm conversion in MDx
...
MDx radios get an RSSI voltage in mV, to be converted into dBm, we used
and empirically derived linear relation to compute the dBm value.
2021-01-28 10:31:37 +01:00
Federico Amedeo Izzo
1a894c67df
UI: Save and restore VFO channel when switching to MEM mode
2021-01-12 19:25:47 +01:00
Niccolò Izzo
daeeee64dd
Fix battery glitch
...
Battery charge was mistakenly being computed because values used in
computation were defined in a function which was not included as a
header file.
2021-01-12 08:01:34 +01:00
Federico Amedeo Izzo
73c9ab56a6
UI: Channel mode: load channel from cps and do basic validation
2021-01-10 10:18:29 +01:00
Niccolò Izzo
2dcefb7c0e
Add backlight into state, macro functionality
...
Now the current backlight level is part of the radio state, and the
first few macros have been implemented although the rate limiting of
presses has still to be fixed.
2021-01-05 10:08:18 +01:00
Niccolò Izzo
c77cc46fb6
Fix include syntax
...
Interface header includes have acquired the interface prefix, to
distinguish them from regular header includes.
2020-12-24 16:30:13 +01:00
Niccolò Izzo
5949a481fa
Add synchronization between radio state and RTX
...
Now the FSM update function takes an additional parameter, which
determines if the radio state has to be synchronized with the RTX state.
If so, the ui_task does the job.
2020-12-18 21:44:59 +01:00
Niccolò Izzo
c7e928666c
Move low battery screen into main FSM
2020-12-18 19:03:57 +01:00
Federico Amedeo Izzo
0e1d9b090f
UI: Add current mode print on status bar
2020-12-07 18:43:54 +01:00
Federico Amedeo Izzo
8b1d688935
UI: Add initial menu support
2020-12-06 22:28:11 +01:00
Silvano Seva
5d964f3358
Reorganised radio state data structure, bringing in new channel_t variable.
2020-11-26 15:25:26 +01:00
Federico Amedeo Izzo
3370e5a3a7
Add shared state logic
2020-11-21 10:46:48 +01:00
Silvano Seva
b06b120148
Reorganising thread structure, moving thread bodies and thread creation function into a dedicated source file to make overall source code more easily readable
2020-11-15 22:23:32 +01:00