DiSlord
7484de11bb
Fix touch calibrate string position on bigger display
5 years ago
DiSlord
6eff8ca5ee
Update RTC module
5 years ago
DiSlord
37b830de1e
Remove unused var
...
Fix erase bg color in keyboard input in some cases
5 years ago
DiSlord
3b3bb09371
Remove draw_menu() calls from callback functions
...
Call draw_menu after process menu_invoke if no exit from UI_MENU mode in callback
5 years ago
DiSlord
3f6bbbf533
ui_process_touch optimization (get touch position in it, process data later)
5 years ago
DiSlord
4559c7245a
More compact marker drag functions
5 years ago
DiSlord
c6fc9a5d80
Add define for MARKER_INVALID and TRACE_INVALID
...
Remove obsolete marker search functions
5 years ago
erikkaashoek
a1559e77ac
low output corrected
5 years ago
erikkaashoek
c3e9c8aaf2
TINYSA3 and TINYSA4 merged
5 years ago
erikkaashoek
42fd2b713b
Merge branch 'master' into tinySA-V4-SI4463
5 years ago
erikkaashoek
a95ec1d8cc
Remote desktop
5 years ago
erikkaashoek
e8d23a7047
Added output leveloffset
5 years ago
erikkaashoek
682dd8457d
Merge branch 'master' into tinySA-V4-SI4463
5 years ago
erikkaashoek
6cc3ace210
Output level inc/dec keys work with external amp
5 years ago
erikkaashoek
93f37a7c7a
Merge branch 'master' into tinySA-V4-SI4463
5 years ago
erikkaashoek
7c7fd57b16
Add battery status to form and freq_t
5 years ago
erikkaashoek
a04d69b011
Converted to 64 bit frequencies
5 years ago
erikkaashoek
94fd6e083d
Power levels multiple SPI speeds
5 years ago
erikkaashoek
224a96df63
Hangup output menu repaired again
5 years ago
erikkaashoek
726156e4d7
Modulation repaired
5 years ago
erikkaashoek
947c612f37
Merge branch 'master' into tinySA-V4-SI4463
5 years ago
erikkaashoek
0dadd2e2db
Solved hangup bug when modulation was active
5 years ago
erikkaashoek
0fdb646c0f
Modulation working
5 years ago
erikkaashoek
05c85e8fcd
Text correction
5 years ago
erikkaashoek
f19a9f9f3d
Freq quick buttons corrected
5 years ago
erikkaashoek
238b60093e
Merge branch 'master' into tinySA-V4-SI4463
5 years ago
erikkaashoek
876b832a44
Freq also has quick buttons
5 years ago
erikkaashoek
ea41a86487
Add level quick buttons and high output keypad
5 years ago
erikkaashoek
3191fccaad
Remote control working
5 years ago
erikkaashoek
4f9c9aad73
First step of adding harmonic mixing and maxFreq now 4.29GHz
5 years ago
erikkaashoek
e1d19d79c4
Slider improvements
5 years ago
erikkaashoek
afec539dac
Merge branch 'master' into tinySA-V4-SI4463
5 years ago
erikkaashoek
4828b068f2
Remove start/stop in output mode with slider
5 years ago
erikkaashoek
9e2749ede0
Merge branch 'master' into tinySA-V4-SI4463
5 years ago
erikkaashoek
606ec95b5f
Slider span
5 years ago
erikkaashoek
802ab82ce9
Slider updated and selftest 7
5 years ago
erikkaashoek
2015f1725c
Added high output level slider
5 years ago
erikkaashoek
7f70896ed4
Outputlevel slider added
5 years ago
erikkaashoek
edb87de448
Slider update
5 years ago
erikkaashoek
bca0f83a46
Updated slider
5 years ago
erikkaashoek
05351c533f
Slider improved
5 years ago
erikkaashoek
af88eae535
Slider working
5 years ago
erikkaashoek
a37a40228e
Split LO and RX drive
5 years ago
erikkaashoek
5168a191e3
Merge branch 'master' into tinySA-V4-SI4463
5 years ago
erikkaashoek
ac6dd84250
Added external amp in output mode
5 years ago
erikkaashoek
8921e10de4
Double click for bottom quick menu bug solved
5 years ago
erikkaashoek
8f3a4da50e
Merge branch 'master' into tinySA-V4-SI4463
5 years ago
erikkaashoek
17697051bc
Solved vbat race condition
5 years ago
erikkaashoek
efe18e0baf
Merge branch 'master' into tinySA-V4-SI4463
5 years ago
erikkaashoek
29c10161dd
Corrected touch cal bug and code squeezing
5 years ago
erikkaashoek
73ae3f901d
Added frequency quick menu
5 years ago
erikkaashoek
f5b6f318bb
Corrected keypress bug
5 years ago
erikkaashoek
b93dcefa05
Updated spur removal setting and marker quick menu
5 years ago
erikkaashoek
41994127e8
Merge branch 'master' into tinySA-V4-SI4463
5 years ago
erikkaashoek
be2fb2e466
Added quick menu
5 years ago
erikkaashoek
fbc6238cbd
Merge branch 'master' into tinySA-V4-SI4463
5 years ago
erikkaashoek
6f87211a66
Remove __ULTRA_SA__
5 years ago
erikkaashoek
c2ce6e10c9
Merge branch 'master' into tinySA-V4-SI4463
5 years ago
DiSlord
52b4f2bd58
Use "palette" index for draw all on display
...
Colors stored in config
Now possible change any color by 'color' command and store for use
5 years ago
erikkaashoek
94cfd46996
Added marker to ref level
5 years ago
erikkaashoek
168a43a6d1
Merge branch 'master' into tinySA-V4-SI4463
5 years ago
erikkaashoek
38fd765666
A lot of changes
...
- Store actual frequency in config
- Measure FM deviation
- Center zoom updated to work with dragged marker
- Improved touch calibration markers
5 years ago
erikkaashoek
915038233f
Auto center mode added
5 years ago
erikkaashoek
62d83ee44f
Added sample mean calculation
5 years ago
erikkaashoek
424051821f
Merge branch 'master' into tinySA-V4-SI4463
5 years ago
erikkaashoek
e0ab998ffd
Rework FM modulation and UI crash
5 years ago
erikkaashoek
79257600f3
Erase menu in waterfall aerea
5 years ago
erikkaashoek
2d7e702227
Automatic disable tracking if marker is dragged
5 years ago
erikkaashoek
834171d228
Merge branch 'master' into tinySA-V4-SI4463
5 years ago
erikkaashoek
b798ea2649
Fix crash after touching below active menu
5 years ago
erikkaashoek
6dfe1be073
Merge branch 'master' into tinySA-V4-SI4463
5 years ago
erikkaashoek
ff54300994
Show direct marker selection even when sweep is paused
5 years ago
erikkaashoek
b21627591e
Lever mode never searches but always moves
5 years ago
erikkaashoek
0e7c601c71
Marker search now deactivates tracking
5 years ago
erikkaashoek
ac7e09efdd
Marker PEAK SEARCH added
5 years ago
erikkaashoek
58be2b410c
Merge branch 'master' into tinySA-V4
5 years ago
DiSlord
360584b4ab
Remove obsolete input mode
5 years ago
DiSlord
694bc1b829
Fix erase on input
5 years ago
erikkaashoek
dda9c2b408
Fine grain frequency control
5 years ago
erikkaashoek
ffba0dadf9
Merge branch 'master' into tinySA-V4
5 years ago
erikkaashoek
9f152c34d4
Button drag added
5 years ago
DiSlord
31545e3b17
Fix erase on input
5 years ago
DiSlord
7ff0be62ac
Initial commit for H4 tinySA version
5 years ago
DiSlord
7dd31965f0
Not store unused font glyph (index < 0x17)
...
Add 10x14 bold font
Now all ili9341_drawstring_size replaced by use this font
Change some text for align in menus vs new font
5 years ago
DiSlord
037453fc8d
Remove usage blit16bitWidthBitmap
...
Now need use blit8BitWidthBitmap for draw image
Now big bitmap image need define as uint8_t bitmap array, for more easy use _BMP16, _BMP24, _BMP32 macro
Redefine bitmaps arrays vs this macro
Now bitmap image can be any width and height
Now any bitmap image can be draw transparent on cell
Result code more compact
5 years ago
DiSlord
011fa73c72
More UI cleanup and formatting
5 years ago
DiSlord
4ef8543322
More menu buttons use ADV mode
5 years ago
DiSlord
ac38144dfd
Fix tupo
5 years ago
DiSlord
26476c4480
Fix market tracking if no active marker
5 years ago
DiSlord
643416d0ba
Fix not clean button id disabled button present
5 years ago
DiSlord
21f87e8f3c
Fix bug
5 years ago
DiSlord
ca6d982271
UI cleanup
5 years ago
DiSlord
635f4ffd59
Use UI_FUNCTION_ADV_CALLBACK for menu_harmonic
...
More cleanup
5 years ago
DiSlord
fd831b5f96
Next step for UI mod:
...
Cleanup UI code
In most cases use UI_FUNCTION_ADV_CALLBACK for mod menu settings
Add Auto/Manual icon
Fix some bugs
5 years ago
DiSlord
167a7f1069
Move check box icon at right side of button
5 years ago
DiSlord
8900f87160
Initial iteration of 3d button UI
5 years ago
DiSlord
326ec09f0f
Enable fullscreen 3d keyboard
6 years ago
DiSlord
cb3b0af6ee
Code cleanup
...
Add base definition for menu callback and adv_callback functions
adv_callback - allow more better mod menu draw and process in one place (less error and less code size)
6 years ago
erikkaashoek
fd3d78e96d
Remove some unused menu's
6 years ago
DiSlord
815dff4b48
Allow add values to button label
...
Implement some examples for this
This feature allow made more easy and safe button and save a lot of flash size
6 years ago
DiSlord
7d1126a03c
Fix wrong text align
6 years ago
DiSlord
72ab183296
UI draw update
...
>Multiline text - now possible output multiline in one print (for 2 line buttons for example)
>But syntax is "1_line_text\n2_line_text" possible 3 line and bigger (need only more bigger height for output)
6 years ago
DiSlord
f9803e4d4f
ui code cleanup and simplify
6 years ago
DiSlord
3f71a176d3
More simple keyboard data
6 years ago
DiSlord
8f2bcc0d73
Cleanup non cell area under button on exit
6 years ago
DiSlord
588c69442f
not need display menu on keyboard input (so add really full screen keyboard)
...
move size definitions to header
6 years ago
DiSlord
6833ea601a
Fix waterfall for 145 points
...
Prepare for 3d buttons update (fix keyboard draw buttons)
6 years ago
erikkaashoek
8c647daf12
Repair error on vbwSteps in precise mode
6 years ago
erikkaashoek
62b2751754
Autosave touch cal
6 years ago
DiSlord
62c80c8668
Touch fixes, and optimization
6 years ago
DiSlord
800fa5ea66
Not redraw menu then need step back and leave ui
6 years ago
DiSlord
29fe6898ed
Simply redraw on menu walk
6 years ago
erikkaashoek
e373239447
Revert "Revert "Use average (count = 8) for all ADC measure (include battery)""
...
This reverts commit b0bbe71747 .
6 years ago
erikkaashoek
b0bbe71747
Revert "Use average (count = 8) for all ADC measure (include battery)"
...
This reverts commit aea7761a55 .
6 years ago
DiSlord
aea7761a55
Use average (count = 8) for all ADC measure (include battery)
6 years ago
DiSlord
6501c3dd74
Better responsive touch, also use averaging for touch X/Y read
...
Define and use ADC channels name (for easy use on another boards)
6 years ago
DiSlord
e731ae0a0e
Full screen keyboard
6 years ago
DiSlord
f72d4975ae
redraw freq on screen update for leave_ui_mode
6 years ago
DiSlord
a89a93360b
Bigger text for DFU
6 years ago
DiSlord
7245722343
Fix error on menu walk up from leveler if some menu items disabled (example in HI output modulation select menu)
...
Also now more easy disable some menu items (only in menuDisabled need add rule)
Add delay then walk in menu
More compact code
6 years ago
DiSlord
eca14f8e3c
Small code optimization (less size) in marker move from leveler
...
Now step increase every 4 step on one
6 years ago
erikkaashoek
311d0bda42
Massive sweep time redesign
6 years ago
erikkaashoek
acf2e93401
Add high mode specific attenuation menu
6 years ago
DiSlord
1dde3bd245
Remove more not need full screen redraw, more faster screen update in some cases
6 years ago
DiSlord
11c5938807
Change use time from float to uint32 type
...
Now time settings stored as uSec value
6 years ago
DiSlord
425221aa10
Use better button input debounce and input process (this used in last NanoVNA firmwares) more compact and simple
...
Replace POINTS_COUNT to sweep_points this more correct
6 years ago
DiSlord
d4044808e8
Add waterfall palette (not used by default) for enable need #define _USE_WATERFALL_PALETTE in nanovna.h (more info see in waterfall.c)
...
Add gradient calculation for waterfall (enabled by default)
Now HEIGHT = (GRIDY*NGRIDY), GRIDY variable integer value and depend from render area height
It allow save size and more better align render area
More constants fixes for 4`display
Fix full screen redraw on menu back or select next
6 years ago
erikkaashoek
0a24a6e37b
Prepare for 4 inch display
6 years ago
erikkaashoek
4a2c18e98c
Selftest error screens can be captured
6 years ago
DiSlord
cfb21b2f5d
Move (and add new) some menu size variables to nanovna.h
...
Better use this values and font size for draw menu buttons
Increase right menu button width from 60 to 70
Decrease menu button height from 30 to 28
6 years ago
erikkaashoek
61cc1dc843
Remote control improvements
6 years ago
erikkaashoek
3db1738e0b
Change to levelchange and sweeptime cmd added
6 years ago
erikkaashoek
2c3a268c47
Levelsweep warp error and show UI after cmd mode switch
6 years ago
erikkaashoek
88a9a0a866
Add output and f cmd and repair TIME status mismatch in high mode
6 years ago
erikkaashoek
4e40b69e63
Repaired jog switch control of span
6 years ago
erikkaashoek
9a8a1558ee
Various UI improvements
6 years ago
erikkaashoek
3b61c73a11
Replace LCD size constants
6 years ago
erikkaashoek
c136d58853
output default off, help text improved, use %.3F format
6 years ago
erikkaashoek
76bb2d59dc
UI errors corrected and some code squeeze
6 years ago
erikkaashoek
77f8938edd
Many small ui updates
6 years ago
erikkaashoek
7f0efbfdf9
Scale entry and trace command afapted
6 years ago
erikkaashoek
492fbbed7f
Scaling linear units implemented
6 years ago
erikkaashoek
3493e82d83
Small ui corrections
6 years ago
erikkaashoek
c0e152f6c0
Small UI improvements and additional units
6 years ago
erikkaashoek
29821f98de
New menu working
6 years ago
erikkaashoek
ca9f856c1e
Trial for low mode only meny options
6 years ago
erikkaashoek
2898c02d36
Load/Store of settings added
6 years ago
erikkaashoek
aa6c062341
Modify marker menu created adn ADF4351 core added
6 years ago
erikkaashoek
8bffd8ba36
Added harmonic mixer
6 years ago
erikkaashoek
2d22122256
Help text for numeric input added
6 years ago
erikkaashoek
a6b9e48921
Waterfall improvement and extra measurements
6 years ago
erikkaashoek
5b661b9093
Hangup in offset keypad solved
6 years ago
erikkaashoek
1a2664943f
Many marker and measurement related updates
6 years ago
erikkaashoek
e749f7f8ac
ICON experiment
6 years ago
erikkaashoek
df524ed289
Binary search in spur table
6 years ago
erikkaashoek
c1a266e16e
Stop marker span confusion
6 years ago
erikkaashoek
5f3aed5844
Menu structure adapted
6 years ago
erikkaashoek
6ae3ef9019
Prepare for 8 menu buttons
6 years ago
erikkaashoek
01a665f306
Powerlevels, spur table and marker menu update
6 years ago
erikkaashoek
7d64766513
Optimize stack usage by shifting test and calibrate to lowest level
6 years ago
erikkaashoek
62e0120f22
Measurements working
6 years ago
erikkaashoek
ca687ea11b
Intermediate commit on UI change
6 years ago
erikkaashoek
bd50a9d3e5
Small bug fixes
6 years ago
erikkaashoek
0a03ff0a2f
Added full marker tracking
6 years ago
erikkaashoek
c40a01f22a
Large value text
6 years ago
erikkaashoek
4683b88d0c
Menu update
6 years ago
erikkaashoek
ae326020e3
Merge branch 'master' into tinySA
6 years ago
erikkaashoek
8631ac14f1
Atampt to auto scaling and other UI improvements
6 years ago
erikkaashoek
bab7701458
Large buttons and mode switching improvements
6 years ago
erikkaashoek
8dcf6a6b59
Force top level menu on screen
6 years ago
erikkaashoek
8989861112
3D buttons
6 years ago
erikkaashoek
4ffb6072b7
Capture working with DMA, waterfall still hangs
6 years ago
erikkaashoek
9c129b1310
Output modulation added
6 years ago
erikkaashoek
9fb0638def
Full screen mode menu
6 years ago
erikkaashoek
1105264089
Input forms working
6 years ago
erikkaashoek
f2137f4f97
All except waterfall working
6 years ago
erikkaashoek
4353721ec5
First running port
6 years ago
TT
1656342eeb
feat: add bandwidth setting of detector
6 years ago
TT
0d407577f8
style: uniform code style and untabify
6 years ago
DiSlord
3eb8a4cfe9
Fix interpolation range if sweep_points!=source calibration points count
...
use sweep_points exept POINTS_COUNT on marker search and so
Now possible change sweep_points in process (for faster sweep)
6 years ago
DiSlord
8bdb650212
Implement color command, allow change color settings in config (enabled bu default ENABLE_COLOR_COMMAND)
...
Usage: usage: color {id} {rgb24}
- Grid color: id = -3
- Menu bg color: id = -2
- Selected menu: id = -1
- Trace 1-4: id = 0..3
Color in hex RGB format (but possible any type input, dec, hex, bin. oct)
6 years ago
DiSlord
6f25d0d43f
Remove Mutex use (CH_CFG_USE_MUTEXES = FALSE), now all Mutex depend functions run in sweep thread
...
It allow:
- reduce shell thread stack size
- more compact code
- fix some hardcoded scan command code, allow write better scan version
- run calibrate (not depend from pause sweep flag)
Rewrite uint32_t my_atoui(const char *p), now its allow read:
hex 0xaAbBcC1122
dec 12345678
bin 0b00011100
oct 0o12345678
Add some comments
6 years ago
DiSlord
10ae59e786
Little cleanup
6 years ago
DiSlord
eebb625b9d
Always update marker info
6 years ago
DiSlord
45f04420cb
Implement info command, move info_about[] to main.c
...
Command enabled by default: ENABLE_INFO_COMMAND
This feature not increase flash size
6 years ago
DiSlord
fc6e090595
Add vbat_offset to config
...
Implement vbat_offset command (if defined ENABLE_VBAT_OFFSET_COMMAND)
Reduce code size
6 years ago
DiSlord
bb7127fdd0
Remove variable, use speep_mode flag
6 years ago
DiSlord
12d53738bc
Revert some changes:
...
Start/stop generation feature (unstable on segment scan from CPU)
Calibration on paused sweep (need more stack, need find better solution)
Variable use optimization
6 years ago
DiSlord
a43b6e3acc
si5351.c and si5351.h
...
Cleanup and optimize code
Add comments, fix definitions
Fix rounding errors
Fix band 1 stability
mcuconf.h
Set I2C bus clock to SYSCLK (more fast)
Apply 400kHz bus I2C clock timings for 8MHz and 48Mhz clock
main.c
Remove and reset some variables
Add separate sweep for calibration (allow calibrate if sweep paused)
Increase main thread stack (need for run calibrate, possibly need execute some commands in sweep threads for reduce stack usage)
6 years ago
DiSlord
b77e1d6680
Big work around si5351 generator
...
Improve sweep speed about 60%
Stop generation on pause sweep
Remove all hack for si5351
Reduce code size
Fix integer overflow on big freq values
Additional
Change I2C
Others:
move marker_tracking variable to ui config
move some definition to correct place
reduce tlv320aic3204 code size
Speedup marker move from lever (BUTTON_REPEAT_TICKS = 625)
Need test stability
6 years ago
TT
f1cc60e99e
feat: add lever mode for electrical delay
6 years ago
TT
18c5ca9157
feat: add lever operation of electrical delay
6 years ago
DiSlord
ccb3693516
Huge reduce flash usage (about 5k), remove cal_data and _frequencies properties from data section
...
Use void loadDefaultProps() for load default properties (default loaded also on error load from flash)
Move some constants to nanovna.h
6 years ago
DiSlord
17734f257d
Disable unused ChibiOS options:
...
CH_CFG_USE_WAITEXIT (used only is Shell run as thread)
CH_CFG_USE_EVENTS (NanoVNA not use events)
CH_CFG_USE_EVENTS_TIMEOUT (NanoVNA not use events)
Implement stack use check in "threads" command, now free stack space show in table as "stk free" in hex
Check stack usage by sweep, and main threads (seems all ok, but add 64 bytes to sweep)
Replace some const values to defined
6 years ago
DiSlord
d386b0823c
Write clearScreen and use it in code
...
More hard coded values fixes
6 years ago
DiSlord
b7934745ca
Restore main thread stack size (stack usage code optimization give good result)
...
Decrease sweep thread stack size from 640 to 512 (also stack usage code optimization give good result)
Little change 16x22 font
ui.c
Use definition for some hard coded values
Fix button "Correction" not reset after use "reset"
Define menu button and input num size
#define MENU_BUTTON_WIDTH 60
#define MENU_BUTTON_HEIGHT 30
#define NUM_INPUT_HEIGHT 30
Reduce button height from 32 to 30 pixels (fix in stimulus menu "<back" button overwrite by input num field)
Little code change
6 years ago
DiSlord
d2431f0cdc
Increase screen render (in some cases up to 2x speedup), decrease stack usage (code size less on 1500 bytes)
...
Write simple profiling definitions
START_PROFILE
STOP_PROFILE
Use it for detect sys tick amount and output to screen
main.c
Reduce VNA_SHELL_MAX_LENGTH to 48, and made shell_line as static (reduce stack usage)
Remove BaseSequentialStream *chp from command calls (use static shell_stream), it reduce code size and stack usage
Use VNA_SHELL_FUNCTION definition for all commands
Remove chMtxLock(&mutex);chMtxUnlock(&mutex); from commands, and define command flag for use it in calls
Apply default scale from trace_info on trace change
Led blink outside from main sweep cycle (better look, and less noise)
Some size fixes
chprintf.c
Implement small memory stream object, only put function and plot_printf(char *str, int size, const char *fmt, ...)
Use it in all code (little increase speed, and huge decrease size)
Restore USE_EXCEPTIONS_STACKSIZE = 0x180 (possible not need, but not good tested)
plot.c
Made huge screen render profile (add some comments)
Not use cell clipping on draw cell data (use constants increase speed, decrease stack usage (not need put it to stack))
Clip cell if need only on screen flush
Use new plot_printf, remove chsnprintf usage
Apply code style
============================================================================================================
Interesting fact
Usage memset(spi_buffer, DEFAULT_BG_COLOR, (h*CELLWIDTH)*sizeof(uint16_t)); dramatically decrease render speed
possibly it fill buffer by 8 bit data, so slow
Usage
uint32_t *p = (uint32_t *)spi_buffer;
while (count--) {
p[0] = DEFAULT_BG_COLOR|(DEFAULT_BG_COLOR<<16);
p[1] = DEFAULT_BG_COLOR|(DEFAULT_BG_COLOR<<16);
p[2] = DEFAULT_BG_COLOR|(DEFAULT_BG_COLOR<<16);
p[3] = DEFAULT_BG_COLOR|(DEFAULT_BG_COLOR<<16);
p+=4;
}
gives x10 speed perfomance
Draw polar and smit grid very slow (but i don`t know how increase it except use bitmaps, but it need about 5-8k flash size and file prepare)
On long lines render slow down, but clipping use more calculation, and not give good result
Need made stack usage check
6 years ago
TT
7d2708afce
feat: paramterize number of y-grid, revert to 8
6 years ago
TT
681272c253
fix: update year of the copyright
6 years ago
TT
10e5578c8c
Merge branch 'levermode' into DiSlord-master
6 years ago