added param for crosstrack gain defaulted to 4

This commit is contained in:
Jason Short 2011-11-19 13:59:37 -08:00
parent 9bc4328724
commit 39d0df4cef

View File

@ -215,7 +215,7 @@ static void update_crosstrack(void)
//radians((target_bearing - original_target_bearing) / 100)
crosstrack_error = sin(temp) * wp_distance; // Meters we are off track line
crosstrack_error = constrain(crosstrack_error * 4, -1200, 1200);
crosstrack_error = constrain(crosstrack_error * g.crosstrack_gain, -1200, 1200);
}
}