Function eveluation in template [message #1810333] |
Thu, 08 August 2019 06:21  |
Eclipse User |
|
|
|
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
|
|
|
|
|
Re: Function eveluation in template [message #1810383 is a reply to message #1810336] |
Fri, 09 August 2019 04:18  |
Eclipse User |
|
|
|
Hello Botond, Olaf,
Thanks a lot for your answers.
I tried with the latest version of TITAN and you're right, the functions f_getDeltaxx() are evaluated each time the template is evaluated.
I'm going to cross-check with the company which raised the issue because .
Thanks again for your help,
Yann
|
|
|
Powered by
FUDForum. Page generated in 0.05645 seconds