I need help please anyone
How do we write float array return type function? I have the 3 values as floats in the function right now I can read them through the serial port. But I am not sure how to pass them to the void loop.
Also I would appreciate telling how to call the function there.
Float array[3] function (arguments)
{
return float array[3]
}
This also reinforces the point that you should be careful not to alter the values in an array passed to a function in place, unless you want those changes to affect the array in the calling function as well.
I am reading the values serially from matlab using xbees.
The I am calling a function that has chararray as argument which separates the characters to 3 float values.
I want to pass back those values to the loop so I can use them.
But I am only allowed return