so once in the loop I take 10 times the same value..
It's worse than that. Because of the location of your "for" loop brackets, you divide after each addition by 10, and the final result is approximately one tenth the magnitude it should be.
You can add all the number up and divide by 10 or divide each individual value by ten and then add, but don't keep adding a number to a previous sum divided by 10 and then divide by 10 again.
void setup() {
Serial.begin(115200);
float current = 0;
for(int i = 0; i<10; i++)
{
static int rawcurr = 500;
current = current + rawcurr;
current = current/10;
}
Serial.print(current); //result = 55.56 not 500
}
void loop() {}