0

static variables use

chuck streb 3 years ago in IQANdesign updated 3 years ago 2

i would believe this code would move BeltVelFlt from var0 to var4 but i doesn't. I am missing something

Suggestions


static var0 := 0

static var1 := 0

static var2 := 0

static var3 := 0

static var4 := 0

var4 := var3

var3 := var2

var2 := var1

var1 := var0

var0 := BeltVelFlt

Result := (var0- var4)/4/glLoopTime

i may have found it, i init to :=0, thats an integer

That was it. i had to use 0.0 instead of 0 when initializing the var0..var4

static var0 := 0.0