DiSlord
02a5715bb4
Big code redisign (increase CELL draw size, more faster screen render), also save about 4-5kB flash size
...
Try remove all hardcoded values from code (use definition if set)
Some error fix
main.c:
Rewrite Shell, now it run on main thread and require less RAM (not need stack)
(possible run it as thread if define VNA_SHELL_THREAD
Remove not used trace_info[].scale_unit in set_trace_scale/get_trace_scale (it just divede on set and multiple on get, better use it for default scale set)
Replace some hardcoded values
MARKERS_MAX
SAVEAREA_MAX
TRACES_MAX
plot.c
Rewrite CELLWIDTH and CELLHEIGHT use, now possible set any CELL width and height (CELLWIDTH * CELLHEIGHT <= spi_buffer size)
Free RAM from shell stack use fore increase spi_buffer size now it have 2048 pixel (64x32)
Rewrite cell index and markmap use (now correct use cell size, and more faster), correct use CELLWIDTH and CELLHEIGHT in calculation
Fore set update area use invalidateRect (still need use some hardcoded values :( )
Rewrite cell_draw_line
Rewrite many hardcoded size definitions
Refrence point now draw as bitmap (less size, more costumable)
Fix drag marker (now correct search closest index in search_nearest_index)
Rewrite plot_into_index, now correct use size definitions, moe
ui.c
Small rewrite keyboard definitions, for use less flash size
Define KP_WIDTH, KP_HEIGHT for set key size
Better look some big font symvols
All:
use static fore some local functions (use less space on calls)
replace tabs on spaces (code style)
Use M_PI from math.h fore define pi value
Fix printf on print HEX values
6 years ago
DiSlord
e9f65b1426
Huge rework chsnprintf function (basic functional more compact and faster):
...
I can`t upload my version chprintf.c to ChibiOS\os\hal\lib\streams upload it to root :(
now support print float and Suffix if use example %.1F on 1.234e-3 print 1.234m, %F print 1.23m
now support + flag %+d on 8 print +8, %+d on -8 print -8
now support freq output if use %q example %q on 1234567890 print 1.234 567 890 GHz, %.8q print 1.234567GHz
fix rounding errors on print float example if print use %.2f on 2.199 print 2.20 (before 2.19)
Use it in code - made more compact (save about 2k bytes) and easy display values (set output more digits after . for some values)
Made some font glyph more compact, allow 3px glyph
More correct create frequencies table on big span (not use float operations), also produce more compact code
Use double value input from keyboard (not lost Hz on input)
Set sweep_points as uint Optimize set_sweep_frequency size
Fix freq commands broken after freq set as uint32 (add str to uint32 functions for freq bigger then 2 147 483 647):
cmd_freq
cmd_offset
cmd_threshold
cmd_scan
cmd_sweep
Define _isdigit macro (replace isdigit() function, its too big)
Rewrite std universal atoi() to more compact my_atoi and write new unsigned variant my_atoui
6 years ago
TT
dd4074d501
fix: gain table covers 2.7GHz
6 years ago
ВшЫдщкв
5a4d02208f
define POINTS_COUNT in nanovna.h
...
fix 'micro' char in font
fix draw STOP distance in frequency field
fix x position calc in plot_into_index
fix frequencies delta defined as int in plot.c
fix frequencies defined as int in ui.c
6 years ago
ВшЫдщкв
90dc36418d
Remove test code
...
Optimize size trace command function
6 years ago
ВшЫдщкв
6f666cf31b
Change Font size (more readable)
...
Rework display spi driver:
use DMA for read, write
add blitBitmap functions
Use DMA for color fill
More correct SPI bus control
Move color definitions to nanovna.h
Some code optimization for speed and size (save about 3k bytes)
Change grid Y resolution to 10
Fix convert from float to int (fix some rounding errors on plot)
Disable unused HAL serial
Change battery icon
6 years ago
TT
18a1ca4e6e
feat: add marker tracking
6 years ago
TT
c4edbee973
fix: boundary check of center/span
6 years ago
TT
e1ba0c77f0
chore: store velocity factor in float
6 years ago
TT
c4495b6d58
chore: add reserved room in properties and config
6 years ago
TT
fcb0be6def
fix: remove upper limit of signed int32 for frequency setting
6 years ago
TT
ed85ca193b
fix: make touch cal default suitable for 2.8 panel
6 years ago
TT
dd4eaed475
fix: change to marker lever mode on transform enabled
6 years ago
TT
b909ccb716
feat: add lever operations (center, span, search)
6 years ago
TT
e6035a5d96
doc: add guide on clearconfig
6 years ago
TT
f6e9c6f434
fix: adjust delay
6 years ago
TT
0124e1b32d
chore: update codec control
6 years ago
TT
b80790477c
chore: disable dump command
6 years ago
TT
85c8b5c893
fixed: update interpolation status on changing sweep freq from serial #84
6 years ago
TT
e3a10a7868
fixed : #70 first measurement point sometimes has wrong value
6 years ago
TT
5651d1e447
Merge branch 'format_delay'
6 years ago
TT
07de5cd579
enhancement: adjust delay
6 years ago
TT
342c5ff669
add trace format of group delay
6 years ago
TT
3fc17e18f9
fix: break sweep loop on frequency change
6 years ago
TT
f7e712798a
chore: remove warnings
6 years ago
TT
bfd45c715d
fix: fix digit loss of sweep frequency
6 years ago
TT
3a6de231c6
fix: remove glitch on interpolation
6 years ago
TT
94659a22ba
feat: add threshold command
6 years ago
TT
18c529984b
chore: use table to adjust gain related to freq
6 years ago
TT
50bce64575
feat: add transform command
6 years ago
TT
ea1c74240a
fix: update display in pause
6 years ago
TT
0aeadaa213
fix : #52 . Previous fix 4e2036b was incomplete.
6 years ago
TT
064477291a
fixed: freeze device by clicking pause
6 years ago
TT
4e2036ba36
fix : #52
6 years ago
TT
0d36621411
fix: unexpectedly cal reset on changing frequency range
6 years ago
TT
b552d04f96
fix: apply cal on scan
6 years ago
TT
5fea75f92f
chore: move loop of scan command into sweep thread
6 years ago
TT
571e45d50b
feat: add scan command
6 years ago
TT
516319b354
fix: plot only if sweep completed
6 years ago
TT
c72abc7bb9
fix: usage of sweep command
6 years ago
TT
0b885f2640
fix: unexpected ripple of s21 in thru
6 years ago
TT
47f48d83e4
fix: omit drawing screen from usb thread
6 years ago
cho45
1120d5c33b
Fix timedomain transform (based on acd944d5fa1c8bfd016b27c65e92e14e81f755c8 by @erikkaashoek )
6 years ago
TT
e89c9bd6a7
Merge pull request #32 from cho45/timedomain
...
[proposal] Time Domain Operation
6 years ago
TT
d68ab20c30
fix: increase stack area to prevent fault caused from nanovna-saver
6 years ago
TT
c388832ef0
Revert "add command battery"
...
This reverts commit be45653c2b .
6 years ago
cho45
aa4faa5a6e
rename TDR -> TD
6 years ago
cho45
472b895d5b
windowing
6 years ago
cho45
6bad9de606
change menu name to 'TRANSFORM'
6 years ago
cho45
b17ecfa533
minor fixes
6 years ago
cho45
8f0bfacf3d
setting velocity factor
6 years ago
cho45
95ab399567
save domain mode
6 years ago
cho45
889d675836
TDR feature
6 years ago
TT
be45653c2b
add command battery
6 years ago
cho45
a9457dbd0a
show battery indicator (requires implementing D2 on board)
6 years ago
cho45
5e9756e4e0
append `reset dfu` command and `CONFIG` -> `ENTER DFU`
6 years ago
cho45
39b7fdf95e
append version info screen to UI
6 years ago
cho45
480ad0f745
static inline reduce stack memory usage
6 years ago
TT
3e841920fb
refactor: introduce trace_info
6 years ago
TT
96f4811b82
add trace command usage
6 years ago
TT
7ff53357bd
feat: use default scale on format change
6 years ago
TT
c48cb8e407
feat: add command options for trace type real/imag/r/x
6 years ago
cho45
f9a5d2e3ef
Add REAL IMAG R X trace format
6 years ago
cho45
7ce755d666
optimize protocol of capture function
6 years ago
cho45
1c4718ae4a
implement capture command
6 years ago
TT
28614dbb4a
store version as separate string
6 years ago
TT
53d07e8c12
feat: add version command
6 years ago
TT
eedf0e1aa7
fix: remove glitch at first sweep point
6 years ago
TT
0a8bfbff33
feat: interpolate from current cal file and only if cal applied
6 years ago
TT
3b953f061b
feat: adjust gain and frequency band, enpower LO drive strength.
6 years ago
TT
bcb0644070
gain adjust for frequency
6 years ago
TT
a4ef290126
experiment: x5 harmonic mode
6 years ago
TT
e626c581ee
feat: add sample command to evalutate dynamic range
6 years ago
TT
8fdedea919
feat: interpolate CAL from current saved file
6 years ago
TT
c4edf2a6eb
omit: unused buffer refiq
6 years ago
TT
c6a4b651d0
feat: add controling stimulus power and gain by frequency
6 years ago
TT
10a58f9580
feat: extend to 900MHz
6 years ago
TT
0cac8f4adc
fix s11 error correction mistake
7 years ago
TT
63d19f3f6f
WIP: up/down touch operation on numeric area
8 years ago
TT
e0197b8381
WIP: touch operation on numeric input area
8 years ago
TT
b64826b76a
add numeric input support scale and electrical delay
8 years ago
TT
f3a473bffa
work with keypad
8 years ago
TT
7228ebd5fa
add numeric input (WIP)
8 years ago
TT
5d1934d85f
support electrical delay
8 years ago
TT
5a441edc6b
update marker position on sweep frequency change
8 years ago
TT
043972e6ca
fix segv on active trace 4, apply error term inside sweep loop, show active trace on marker info
8 years ago
TT
774a11ae74
add interpolation on cal
8 years ago
TT
ee6f5a9d83
change keypads on scale, scale handling
9 years ago
TT
c30a2730f3
skip redrawing after touch cal to avoid hanging up
9 years ago
TT
b42749e57d
fix jump of touch sense, add touchtest command, draw on touch cal, fix gap of drag marker position
9 years ago
TT
0db99b9c7c
add lower range 50kHz support, fix frequency inversion
9 years ago
TT
abfe237d23
fix correlation detection
9 years ago
TT
095b250137
implemented correlation detection, worked, but no good result
9 years ago
TT
10bbe7dc82
re-enable dump command
9 years ago
TT
1db0259173
adjust thread stack size
9 years ago
TT
16923eaacf
add DUMP_ENABLED option
9 years ago
TT
79d1060a46
add hard_fault handler
9 years ago
TT
373e56f006
add clearconfig command
9 years ago
TT
295ec105e6
set scale and refpos temporally
9 years ago
TT
75ea6308ed
fix trace becoming broken line
9 years ago
TT
cb50a0e6c3
add toggle sweep operation
9 years ago
TT
4845bde486
change from active to active_props
9 years ago
TT
407d802a9c
remove unused code, use sweep instead of scan, sweep_points instead of 101
9 years ago
TT
7d7b752569
fix delay on frequency change
9 years ago
TT
c083fb9298
add refpos indicator, make marker able to be sticking out
9 years ago
TT
ee4576dc33
menu attribute change on trace selection and cal operations
9 years ago
TT
5ebb3330ff
add menu item delay (but not work)
9 years ago
TT
3852f9cb21
move menu_color and touch_cal to config
9 years ago
TT
9037593831
add save and restore dac value in flash
9 years ago
TT
9f5259556c
split config and properties
9 years ago
TT
bd2890e6af
add frequencies command
9 years ago
TT
6a704c8588
rewind sweep again when frequency updated
9 years ago
TT
fd38f249ce
continue signal on cw mode
9 years ago
TT
ef63476219
add single trace command, fix failure on changing polar to rect
9 years ago
TT
74cfdb93a3
arrange code, add notice at head of each file
9 years ago
TT
0bf87f42aa
work touch menu operation
9 years ago
TT
8d39e43471
rename freq_start/stop
9 years ago
TT
6d0ea0e1dd
remove fstart/fstop
9 years ago
TT
aa91bc23fc
add CW, mod freq from limits
9 years ago
TT
52dce51f31
add freq center/span
9 years ago
TT
8014d3442e
add button repeat. change numeric input
9 years ago
TT
9c3296ad0d
resistitive touch work in progress. add adc and gpt
9 years ago
TT
a50517bf3f
add keypad for freq and scale, add save menu
9 years ago
TT
d84a212a3b
add channel menu, narrow and ensure selection, reverse marker moving direction
9 years ago
TT
4e55ca4f70
add atof of my own
9 years ago
TT
69c41aa57e
add wait_dsp function, add trace all off command, fix hang on ploting polar with trace 0
9 years ago
TT
25dd4bf182
add grid control, etc
9 years ago
TT
1f64bb759b
make working area of shell thread static
9 years ago
TT
9a63892480
add menu structure and behavior
9 years ago
TT
052460d145
add cal status indicator
9 years ago
TT
f0eaa108ad
save trace and marker data
9 years ago
TT
38d6a50047
add areas to save/recall
9 years ago
TT
5498d63751
make controlable marker with lever switch, test menu display
9 years ago
TT
bc6ce2963c
add some comments, order code
9 years ago
TT
539653b52a
add ohm char font, change face of zero "0"
9 years ago
TT
3eb8125086
add marker command
9 years ago
TT
be967b006c
rearrange marker info
9 years ago
TT
00a4b70bf7
split code into plot.c
9 years ago
TT
17188a0418
shrink stack size, add marker info temporally
9 years ago
TT
0d6c718a47
change command name from data to dump, add data command to fetch array, marker position
9 years ago
TT
520ebef659
add open capacitance model (constant)
9 years ago
TT
ab87c813a1
add band pass filter on tlv320aic3204
9 years ago
TT
e4f46c69c0
add trace command
9 years ago
TT
0fe058aca7
add save/recall feature
9 years ago
TT
09c99564f6
add float output with cal command
9 years ago
TT
f22830cdb0
fix er
9 years ago
TT
86fae97c9b
add SOLT/E-Resp calibration and command
9 years ago
TT
9dda579abe
add preliminaly calibration
9 years ago
TT
01057921f6
adjust memory allocation for keep caldata
9 years ago
TT
b5abce3dfc
change to cell drawing method
9 years ago
TT
82a8f19c25
add smith plot, spi dma transfer
9 years ago
TT
314ca70b31
clean unused code, add drawing frequencies
9 years ago
TT
b2e3fe770d
set sweep on draw, adjust grid
9 years ago
TT
d105faf709
display two traces
9 years ago
TT
c1decf606b
use float to calc gamma, cleanup
9 years ago
TT
90db23ffc0
add pause/resume
9 years ago
TT
92161068db
add plotting and smith grid
9 years ago
TT
602df8af7a
add spi lcd ili9341 in development
9 years ago
TT
5031e496f9
add sweep command
9 years ago
TT
a5fd502ba0
add band change handling
9 years ago
TT
c84d5f0fa5
make fast si5351 i2c control, add scan command
9 years ago
TT
7c4c5a76dc
add gamma calculation
9 years ago
TT
b0e8aee11e
add temprally gamma caluclation
9 years ago
TT
10b2cb7702
add dsp.c (hilbert, iir)
9 years ago
TT
57efd8b7e7
add gcd division, change led blink
9 years ago
TT
7b3b28f8af
add gain/offset/power command, clean up si5351a control
9 years ago
TT
a2e09a7923
support >150MHz, fix failure on frequency change
9 years ago
TT
011d9774f5
add >150MHz support
9 years ago
TT
59020b8cfc
initial commit
9 years ago