Function eveluation in template [message #1810333] |
Thu, 08 August 2019 10:21 |
Yann Garcia Messages: 145 Registered: June 2016 |
Senior Member |
|
|
Hello,
I have a template with one of the field resulting of a function evaluation:
template LongPosVector mw_longPosVectorPosition(
in template (value) LongPosVector p_longPosVector
) := {
gnAddr := p_longPosVector.gnAddr,
timestamp_ := ?,
latitude := f_getDelta32(valueof(p_longPosVector.latitude), PX_POS_DELTA),
longitude := f_getDelta32(valueof(p_longPosVector.longitude), PX_POS_DELTA),
pai := ?,
//FIXME May the delta factor should be based on the actual speed value -> low speed=lower delta, high speed=higher delta
speed := f_getDelta15(valueof(p_longPosVector.speed), float2int(int2float(valueof(p_longPosVector.speed)) * 0.03)),
heading := p_longPosVector.heading
}
It seems that the function was evaluated only once, during the first evaluation of the template, doesn't it?
Thanks a lot
Yann
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02742 seconds