limit the volume
Created at 08 Jul 2013, 17:43
limit the volume
08 Jul 2013, 17:43
hello
on the robot;alembex
/algos/robots/show/251
I would like a formula to limit the volumes
eg 800k (0.8m) max
thank you very much.
élodie
Replies
Nego
24 Jul 2013, 11:22
//+---------------------------------------------------------+ //| Limits the Volume | //+---------------------------------------------------------+ int VolumeLimit(int lprmnVolume, int lprmcMaxVolume=800000) { int lnVolume = Math.Min(lprmnVolume,lprmcMaxVolume); return(lnVolume); } //+---------------------------------------------------------+
I suspect you simply dont know the Math.Min() function ...
@Nego
elodie
23 Jul 2013, 17:00
RE:
hello
I found a few examples,
but I have not managed to adapt
thank you
@elodie