Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Youssef El Amrani
carolocupFirmware
Commits
3aad5b30
Commit
3aad5b30
authored
Feb 02, 2019
by
Andreas Werner
Browse files
Merge branch 'fixSpeedCalc' into 'master'
init speed variable See merge request
CaroloCup/carolocupFirmware!34
parents
5c078652
9602c62f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/controller.c
View file @
3aad5b30
...
...
@@ -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
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment