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
gxiang
Mobilebot
Commits
4f5f9c04
Commit
4f5f9c04
authored
Aug 26, 2020
by
Demo User
Browse files
fixed drive_simple
parent
c61aa430
Changes
1
Hide whitespace changes
Inline
Side-by-side
drive_simple/drive_simple.c
View file @
4f5f9c04
...
...
@@ -146,6 +146,6 @@ void publish_encoder_msg(){
encoder_msg
.
right_delta
=
0
;
encoder_msg
.
leftticks
=
enc_l_pol
*
rc_encoder_eqep_read
(
1
);
encoder_msg
.
rightticks
=
enc_r_pol
*
rc_encoder_eqep_read
(
2
);
printf
(
" ENC: %lld | %lld "
,
encoder_msg
.
leftticks
,
encoder_msg
.
rightticks
);
printf
(
" ENC: %lld | %lld
\r
"
,
encoder_msg
.
leftticks
,
encoder_msg
.
rightticks
);
mbot_encoder_t_publish
(
lcm
,
MBOT_ENCODER_CHANNEL
,
&
encoder_msg
);
}
\ No newline at end of file
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