ValueAtG
Model ElementValueAtG computes the value of a signal, when a second signal, , achieves a certain value .
Class Name
ValueAtG
Description
Where:
Attribute Summary
Name | Property | Modifiable by Command? | Designable |
---|---|---|---|
label | Str () | ||
fsignal | Function () | Yes | |
gsignal | Function () | Yes | |
gvalue | Double () | ||
delta | Double () | ||
scale | Double (1) |
Usage
# ValueAtG used to compute fsignal at a particular value of gsignal
ValueAtG (fsignal=fsignal, gsignal=gsignal, gvalue=gvalue, delta=delta, optional_attributes)
Attributes
- fsignal
- String
- gsignal
- String
- gvalue
- Double
- delta
- Double
- label
- String
- scale
- Double
Example:
# Compute the steer angle difference when the steering wheel angle is ZERO
# Steering wheel angle
swa = "AZ(i,j)".format(i=m77.id,j=m66.id)
# Steering angle difference
sad = "YAW(i,j) - YAW(k,l)".format(i=m33.id, j=m22.id, k=m55.id, l=m44.id)
# Steer angle difference at zero SWA
result = ValueAtG (
label = "Steer Angle Difference at Zero SWA",
fsignal = swa,
gsignal = sad,
gvalue = 0.0,
delta = 1e-3
)