Taking care of negative acceleration

Casting the raw byte to signed integer to take care of negative values
Thanks to tom(tom@birdbraintechnologies.com) for the fix

Reviewed by:pdey
Testing:Manual
Tickets:
Backport: