tests:each image to cpp
This commit is contained in:
parent
8be5532153
commit
575be5d88b
21
packages/kbot/tests/pdf/omron/convert.md
Normal file
21
packages/kbot/tests/pdf/omron/convert.md
Normal 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.
|
||||
7
packages/kbot/tests/pdf/omron/convert.sh
Normal file
7
packages/kbot/tests/pdf/omron/convert.sh
Normal 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
|
||||
2094
packages/kbot/tests/pdf/omron/omron.h
Normal file
2094
packages/kbot/tests/pdf/omron/omron.h
Normal file
File diff suppressed because it is too large
Load Diff
@ -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
|
||||
Loading…
Reference in New Issue
Block a user