I need a better handheld explination of how to right and understand the way a lookup table is used in programing.
I've wrote a code for the 20M to control a airride system in a car. I would like to have 4 set ride heights based on the speed of the vehicle. I've started with the following statements
if b7 < 40 then flash_2
if b7 > 40 then flash_3
if b7 >100 then flash_4
and so on.
Can I make a 1x10 table to reflect which flash to use at different parts of the speed range? Would this save space or should I just stick with what I got?
Thanks Ryan
I've wrote a code for the 20M to control a airride system in a car. I would like to have 4 set ride heights based on the speed of the vehicle. I've started with the following statements
if b7 < 40 then flash_2
if b7 > 40 then flash_3
if b7 >100 then flash_4
and so on.
Can I make a 1x10 table to reflect which flash to use at different parts of the speed range? Would this save space or should I just stick with what I got?
Thanks Ryan