I need assistane understanding the multiMap() function found in the playground.

I also have 2 arrays, one is a series of known analogRead points and the second is a list of corresponding output results that I want with interpolation between.

I do not understand the structure and meaning of the multiMap() declaration statement in line 1. Can someone please break down what each of the 4 items are?thanksThe post is at http://arduino.cc/playground/Main/MultiMap

int multiMap(int val, int* _in, int* _out, uint8_t size)The first argument is the value to map. (rawMM in your case)The 2nd argument is the array of values to map from. (analogin in your case)The 3rd argument is the array of values to map to. (mils in your case)The 4th argument is the number of items in the arrays.

Quote

As an add to above, here is my code but I get a compilation error "undefined reference to multiMap(int, int*, int*, unsigned char)

"here is my code" is wrong. "here is a snippet of my code" would be correct. You need to post ALL of your code.

The u at the beginning means that the type is unsigned. The int part means that the value is integer type. The missing part is the size (typically, the name is uint8_t, uint16_t, uint32_t, or uint64_t). The _t on the end means that the variable occupies the specified number of bits regardless of the platform.

An int is different sizes based on whether it is on an Arduino, a PC, a Unix machine, or a mainframe computer. A uint16_t, on the other hand, is 16 bits, regardless of where the code runs.