nedAccel doesn't seem to be used in the code. That would also imply that updateNedAccel isn't used, either.