Commit 1b60b98
authored
LibMCCore (scanlab, libmcenv): Fix microvector delay tick conversion and implement scatterplot channel fill (#68)
### feat(scanlab): convert microvector laser delays using RTC tick resolution
- Added `ConvertDelaySecondsToTicks()` to convert delay seconds into RTC ticks
(1 tick = 1/64 µs) and clamp to the supported range [0..32767].
- Updated `AddMicrovectorMovement()` to use the new conversion for LaserOnDelay
and LaserOffDelay while preserving `-1` as the “no delay” sentinel.
### feat(libmcenv): implement scatterplot channel population from datatable
- Implemented `fillScatterplotChannel()` to populate scatterplot channel/column
vectors from the datatable rows with scale and offset applied.
- Added basic validation and guarded channel/column creation to avoid duplicate
entries.
Signed-off-by: Yury Rodzikau <y.rodzikau@c1-technologies.com>1 parent cb0b541 commit 1b60b98
3 files changed
Lines changed: 41 additions & 5 deletions
File tree
- Drivers/ScanLab/Implementation
- Implementation/LibMCEnv
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1114 | 1114 | | |
1115 | 1115 | | |
1116 | 1116 | | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
1117 | 1126 | | |
1118 | 1127 | | |
1119 | 1128 | | |
| |||
1131 | 1140 | | |
1132 | 1141 | | |
1133 | 1142 | | |
1134 | | - | |
1135 | | - | |
1136 | | - | |
| 1143 | + | |
| 1144 | + | |
1137 | 1145 | | |
1138 | 1146 | | |
1139 | 1147 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
216 | 219 | | |
217 | 220 | | |
218 | 221 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
841 | 841 | | |
842 | 842 | | |
843 | 843 | | |
844 | | - | |
845 | | - | |
| 844 | + | |
| 845 | + | |
846 | 846 | | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
847 | 872 | | |
848 | 873 | | |
849 | 874 | | |
| |||
0 commit comments