Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Em6
robotique
Commits
0272e120
Commit
0272e120
authored
Mar 24, 2016
by
Guillaume Buret
Browse files
Added link in graph
parent
819ec802
Changes
2
Hide whitespace changes
Inline
Side-by-side
stm32/src/strategie/cabine.cpp
View file @
0272e120
...
...
@@ -49,8 +49,6 @@ int Cabine::update()
else
if
(
status
==
2
)
{
// A faire, ne pas hardcoder la position
if
(
Command
::
isNear
(
position_depart
,
10.0
f
))
// le second paramètre est la distance a l'objectif
{
#ifndef ROBOTHW
...
...
stm32/src/strategie/krabi2016.cpp
View file @
0272e120
...
...
@@ -42,8 +42,8 @@ Krabi2016::Krabi2016(bool isYellow) : StrategieV3(isYellow)
// Pieds
int
pa
=
Etape
::
makeEtape
(
new
RamasserPied
(
Position
(
97
0
,
2
6
0
,
true
)));
int
pb
=
Etape
::
makeEtape
(
new
RamasserPied
(
Position
(
1
2
00
,
2
6
0
,
true
)));
int
pa
=
Etape
::
makeEtape
(
new
RamasserPied
(
Position
(
110
0
,
2
8
0
,
true
)));
int
pb
=
Etape
::
makeEtape
(
new
RamasserPied
(
Position
(
1
3
00
,
2
8
0
,
true
)));
// Cabines de plage
int
cp1
=
Etape
::
makeEtape
(
new
Cabine
(
Position
(
250
,
50
,
true
),
wd_position
));
...
...
@@ -53,15 +53,19 @@ Krabi2016::Krabi2016(bool isYellow) : StrategieV3(isYellow)
/** Liens **/
// [WIP]
Etape
::
get
(
start
)
->
addVoisin
(
wa
);
Etape
::
get
(
wa
)
->
addVoisin
(
wb
,
zc2
);
Etape
::
get
(
wc
)
->
addVoisin
(
zc1
);
Etape
::
get
(
wa
)
->
addVoisin
(
wb
);
Etape
::
get
(
cd1
)
->
addVoisin
(
wa
);
Etape
::
get
(
wc
)
->
addVoisin
(
zc1
);
Etape
::
get
(
wc
)
->
addVoisin
(
zc2
);
Etape
::
get
(
wc
)
->
addVoisin
(
pa
);
Etape
::
get
(
cp1
)
->
addVoisin
(
wd
);
Etape
::
get
(
cp2
)
->
addVoisin
(
wd
);
Etape
::
get
(
wc
)
->
addVoisin
(
zc2
);
Etape
::
get
(
wd
)
->
addVoisin
(
wb
);
Etape
::
get
(
pa
)
->
addVoisin
(
wb
,
zc2
);
Etape
::
get
(
pb
)
->
addVoisin
(
pa
,
zc2
);
Etape
::
get
(
pa
)
->
addVoisin
(
wb
);
Etape
::
get
(
pb
)
->
addVoisin
(
pa
);
#ifndef ROBOTHW
qDebug
()
<<
Etape
::
getTotalEtapes
();
...
...
Write
Preview
Markdown
is supported
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