tests:each image to cpp

This commit is contained in:
lovebird 2025-04-24 18:38:03 +02:00
parent 8be5532153
commit 575be5d88b
4 changed files with 2122 additions and 16 deletions

View File

@ -0,0 +1,21 @@
Create or merge enums for found Modbus registers, for C++. Always prefix enum values with 'E_', all in capital, comment if possible (ranges, defaults)
example:
enum OR_E5_STATUS_1
{
// Lower Word
OR_E5_S1_Heater_OverCurrent = 0,
OR_E5_S1_Heater_CurrentHold = 1,
OR_E5_S1_AD_ConverterError = 2,
}
enum OR_E5_SWR
{
//Temperature: Use the specified range for each sensor.
// Analog: Scaling lower limit ‚àí 5% FS to Scaling upper limit + 5% FS
OR_E5_SWR_PV = 0x2000,
}
A file been provided with the existing enums.

View File

@ -0,0 +1,7 @@
kbot-d --router2=openai --model=google/gemini-2.5-pro-preview-03-25 \
--prompt=./tests/pdf/omron/convert.md \
--each=./tests/pdf/omron/*.jpg \
--include=./tests/pdf/omron/omron.h \
--mode=completion --preferences=none \
--dst=./tests/pdf/omron/omron.h \
--filters=code --append=concat

File diff suppressed because it is too large Load Diff

View File

@ -1,16 +0,0 @@
Extract all Modbus read & write registers, as Markdown table. If none can be identified, abort and return message "No registers found, Page Number XX" !!
## Columns
- type (read/write holding register/coil) as function code
- description
- address in Hex
- address in decimal
- parameter name
- if exists : settings / range
- if exists : level
- if exists : default
- Dont comment or explain, just return Markdown
- insert new lines before and after headers
- insert a descriptive chapter name, header level 3 with the page number