Commit 3aad5b30 authored by Andreas Werner's avatar Andreas Werner
Browse files

Merge branch 'fixSpeedCalc' into 'master'

init speed variable

See merge request CaroloCup/carolocupFirmware!34
parents 5c078652 9602c62f
......@@ -339,6 +339,7 @@ static void updateDriveParams(struct controller *ctrl, float throttle, uint32_t
{
int64_t tmp;
int count = 0;
speed = 0;
for (i = 0; i < 4; i++) {
// TODO: creepy hack we just use sensors 2 and 3 because 0 and 1 deliver bad values
if ( i <= 1 ) {
......
Supports Markdown
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