Variable Math question


#1

I'm trying to average the sensor values in an RM4 action. Lacking an average function, I thought I would simply add the three values and divide by 3. But it looks to me that this is pretty complicated. Is this the most efficient way: ?

Set varA to Sensor1
Set varB to Sensor2
Set varC to Sensor3
Set varA to varA + varB
Set varA to varA + varC
Set varA to varA / 3

#2

Yes. It is primitive. It's not a programming language.


#3

I thought BTWorld or Cobra had an averaging application. You might look.


#4

Has there been any thought of bringing more complicated math operations to Rule 4? Especially with the upcoming improvement to GV's (on dashboard)?


#5

No.