Hm, also eine etwas bescheidene Eigenschaft von BASCOM...
Dann werd ich mal schaun, was kürzer ist:
- Entweder erst _yawnow in eine Dezimalzahl konvertieren oder
- erst durch 10 teilen und dann mit _xxx_kp multiplizeren (also dann um den Faktor 10 größer)
Vielen Dank
Gruß
Chris
EDIT:
Habs gerade ausprobiert:
Code:
Const _yaw_kp = 5
Const _yaw_single_kp = 0.5
...
...
...
'330Cycles:
_yawnow = 800
_yawnow = _yawnow / 10
_yawnow = _yawnow * _yaw_kp
'########
'795Cycles
_yawnow = 800
_yawnow_single = _yawnow
_yawnow = _yawnow_single * _yaw_single_kp
'########
Also werd ich die Werte woll erst durch 10 teilen... Danke für die Hilfe
Lesezeichen