Skip to content
Snippets Groups Projects
Commit cbe297b6 authored by Jason Short's avatar Jason Short
Browse files

scaled X velocity

parent 6732f093
No related branches found
No related tags found
No related merge requests found
......@@ -55,7 +55,7 @@ static void calc_XY_velocity(){
// straightforward approach:
///*
x_actual_speed = x_speed_old + (float)(g_gps->longitude - last_longitude) * tmp;
x_actual_speed = x_speed_old + (float)(g_gps->longitude - last_longitude) * scaleLongDown * tmp;
y_actual_speed = y_speed_old + (float)(g_gps->latitude - last_latitude) * tmp;
x_actual_speed = x_actual_speed >> 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment