Commit 3f4f4c95 authored by Matteo Saveriano's avatar Matteo Saveriano
Browse files

Removed incorrect scale rvr-ros.py

parent 76603748
......@@ -166,8 +166,8 @@ def check_if_need_to_send_msg(component):
async def locator_handler(locator_data):
position.x = locator_data['Locator']['X'] * 16000.0 / MAX_SENSOR_VALUE
position.y = locator_data['Locator']['Y'] * 16000.0 / MAX_SENSOR_VALUE
position.x = locator_data['Locator']['X'] #* 16000.0 / MAX_SENSOR_VALUE
position.y = locator_data['Locator']['Y'] #* 16000.0 / MAX_SENSOR_VALUE
position.z = 0
check_if_need_to_send_msg('locator')
......@@ -188,8 +188,8 @@ async def gyroscope_handler(gyroscope_data):
async def velocity_handler(velocity_data):
linear.x = velocity_data['Velocity']['X'] * 5.0 / MAX_SENSOR_VALUE
linear.y = velocity_data['Velocity']['Y'] * 5.0 / MAX_SENSOR_VALUE
linear.x = velocity_data['Velocity']['X'] #* 5.0 / MAX_SENSOR_VALUE
linear.y = velocity_data['Velocity']['Y'] #* 5.0 / MAX_SENSOR_VALUE
check_if_need_to_send_msg('velocity')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment