summaryrefslogtreecommitdiff
path: root/i/chuck/src/es/es.cc
diff options
context:
space:
mode:
authorbecquet2007-05-17 10:14:02 +0000
committerbecquet2007-05-17 10:14:02 +0000
commitf17f84ea7c045ce1b56416a008edaa411ff749cc (patch)
tree429023654d823eb991365babf9b3ab03e5a729b5 /i/chuck/src/es/es.cc
parentf172d87ec5c9a94b33d00fa72541b85542228b68 (diff)
Diffstat (limited to 'i/chuck/src/es/es.cc')
-rw-r--r--i/chuck/src/es/es.cc15
1 files changed, 8 insertions, 7 deletions
diff --git a/i/chuck/src/es/es.cc b/i/chuck/src/es/es.cc
index e1ea228..668aab1 100644
--- a/i/chuck/src/es/es.cc
+++ b/i/chuck/src/es/es.cc
@@ -240,16 +240,17 @@ void Es::receive(char command, const Proto::Frame & frame)
//Activation du truk ki monte et descend.
void
-Es::bouge_ascenceur(int sens,uint8_t vit,uint8_t tps)
+Es::bouge_ascenceur(uint8_t vit,uint8_t tps,uint8_t sens)
{
- if (sens == UP)
- {
- proto_.send('a',"bbb",vit,tps,0x01);
- }
- if (sens == DOWN)
+
+ proto_.send('a',"bbb",vit,tps,0x00);
+ for(int cpt=0;cpt<5;cpt++)
{
- proto_.send('a',"bbb",vit,tps,0x00);
+ proto_.send('a',"bbb",0xFF,0x05,0x01);
+ proto_.send('a',"bbb",0xFF,0x05,0x00);
}
+ proto_.send('a',"bbb",vit,tps,0x01);
+ proto_.send('a',"bbb",vit,tps,0x01);
//faire un static pour savoir la dernière commande.
//permettra de faire l'inverse en automatique.
}