Skip to content

Commit 4535307

Browse files
authored
Correct value table information
1 parent 9bf59ca commit 4535307

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ The system does not automatically timestamp *Write* output unlike the *Trace* wi
3636

3737
The *CAPL* system can use the loaded database (`.dbc`, `.ldf`, etc.) to automatically interpret and set *signal* values, but nowhere is this concisely described. The *signal* name itself is used to set or get the raw (on the wire) value of the *signal*. To get or set the scaled value, append `.phys` to the *signal* variable name.
3838

39-
The values defined in a *value table* (enumeration) associated with the *signal* can also be accessed. To get a string representing the current value of the *signal*, append `.name` to the *signal* variable name. The *value table* values can be used as if they were defined as constants, but if (as is often the case) multiple *signals* use the same values, the system is not smart enough to figure out which one is meant. `<signal name>::<value>` can be used in this case (e.g. `ShifterPosition::Park` would return the numerical value of `Park` as defined in the *value table* associated with the `ShifterPosition` *signal*).
39+
The values defined in a *value table* (enumeration) associated with the *signal* can also be accessed. To get a string representing the current value of the *signal*, use `((enum VtSig_<signal name>)<variable>).name()` (e.g. `((enum VtSig_ShifterPosition)this).name()`). The *value table* values can be used as if they were defined as constants, but if (as is often the case) multiple *signals* use the same values, the system is not smart enough to figure out which one is meant. `<signal name>::<value>` can be used in this case (e.g. `ShifterPosition::Park` would return the numerical value of `Park` as defined in the *value table* associated with the `ShifterPosition` *signal*).
4040

4141
## Receiving data from the network
4242

0 commit comments

Comments
 (0)