Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T800
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Harbor Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Vytor Calixto
T800
Commits
33654594
Commit
33654594
authored
9 years ago
by
Victor Perszel
Browse files
Options
Downloads
Patches
Plain Diff
Troca de coordenadas em VelPos
parent
eb7dffb7
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
confR.plt
+2
-3
2 additions, 3 deletions
confR.plt
main.c
+2
-2
2 additions, 2 deletions
main.c
with
4 additions
and
5 deletions
confR.plt
+
2
−
3
View file @
33654594
set terminal png
set output 'velDir.png'
set
x
label "Velocidade/Direcao"
set
y
label "Velocidade/Direcao"
set autoscale
set
y
label "Tempo"
set
x
label "Tempo"
set format y "%s"
set title "Simulacao de Velocidade e Direcao"
...
...
@@ -16,4 +16,3 @@ set style data linespoints
plot "velo" using 1:2 title "Velocidade", \
"dir" using 1:2 title "Direcao"
This diff is collapsed.
Click to expand it.
main.c
+
2
−
2
View file @
33654594
...
...
@@ -110,8 +110,8 @@ int main(int argc, char const *argv[]) {
// calcula a velocidade para as rodas
distancia
=
distance
(
r
.
x
,
r
.
y
,
tuplas
[
i
].
x
,
tuplas
[
i
].
y
);
velocidade
=
velocity
(
distancia
,
tuplas
[
i
].
t
);
fprintf
(
velo
,
"%
f
%
d
\n
"
,
velocidade
,
frame
);
fprintf
(
dir
,
"%
f
%
d
\n
"
,
r
.
theta
,
frame
);
fprintf
(
velo
,
"%
d
%
f
\n
"
,
frame
,
velocidade
);
fprintf
(
dir
,
"%
d
%
f
\n
"
,
frame
,
r
.
theta
);
moverRobo
(
&
r
,
tuplas
[
i
].
x
,
tuplas
[
i
].
y
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment