Allow the vs record's precision to be specified by the PREC field#17
Allow the vs record's precision to be specified by the PREC field#17keenanlang merged 2 commits intomasterfrom
Conversation
These improvements were proposed by Claude Opus 4.6 via Argo. The code was tested at 3ID-B.
…n IOCs that use autosaveBuild
|
FYI: The basic record types in Base use PREC for VAL and related fields (OVAL, PVAL etc.), but call Some record types have a global variable which can be set with the iocsh Other records such as the aSub, calc and sub that have INP links ask the link what the precision is of the link's target to provide the precision for the local field fetched from that link. They have similar code for returning unit strings too, which is pretty cool if you have a display manager which actually shows the unit strings properly. Then there's the mbb[io]Direct records, which don't have a PREC field or provide a floating-point value, but they return the value of the NOBT field for VAL. Until I ran |
Allow the vs record's precision to be specified by the PREC field.
Commit eef412e includes changes suggested by Claude Opus 4.6 via Argo.
The changes "work" and have been tested at 3ID-B, however, it isn't obvious to me if other modifiations are required. I'm not familiar enough with all the devices supported by the vs record, so I don't know which fields in get_precision should be controlled by the PREC field and which, if any, should remain hard-coded.