"int" is 16bit, you need to:
unsigned long V = round(DeltaTOF1* pow(c,2))/(2*(d+l));
If velocity can be negative, please remove "unsigned".
"int" is 16bit, you need to:
unsigned long V = round(DeltaTOF1* pow(c,2))/(2*(d+l));
If velocity can be negative, please remove "unsigned".