]> rtime.felk.cvut.cz Git - eurobot/public.git/commitdiff
actuators: fixed wrong function prototypes
authorMartin Zidek <zidekm1@gmail.com>
Sun, 29 Mar 2009 09:40:57 +0000 (11:40 +0200)
committerMartin Zidek <zidekm1@gmail.com>
Sun, 29 Mar 2009 09:40:57 +0000 (11:40 +0200)
src/robofsm/actuators.c
src/robofsm/actuators.h

index 8006085cb45e1a177269a14b9fa59ae340bec6fc..17308bb2cc86105cf5720c3f3a1bd21b9fc87029 100644 (file)
@@ -20,40 +20,42 @@ void act_init(struct robottype_orte_data *ortedata)
        orte = ortedata;
 }
 
-void act_lift(unsigned position)
+void act_lift(unsigned short int position)
 {
        orte->lift.pos = position;
        ORTEPublicationSend(orte->publication_lift);
 }
 
-void act_chelas(unsigned left, unsigned right)
+void act_chelas(unsigned char left, unsigned char right)
 {
        orte->chelas.left = left;
        orte->chelas.right = right;
        ORTEPublicationSend(orte->publication_chelas);
 }
 
-void act_belts(int left, int right)
+void act_belts(unsigned char left, unsigned char right)
 {
        orte->belts.left = left;
        orte->belts.right = right;
        ORTEPublicationSend(orte->publication_belts);
 }
 
-void act_holder(unsigned position)
+void act_holder(unsigned char position)
 {
        orte->holder.pos = position;
        ORTEPublicationSend(orte->publication_holder);
 }
 
-void act_pusher(unsigned position)
+void act_pusher(unsigned short int position)
 {
        orte->pusher.pos = position;
        ORTEPublicationSend(orte->publication_pusher);
 }
 
 /* FIXME: temporary function (LPCs not ready yet) */
-void act_picker(unsigned leftchela, unsigned rightchela, unsigned leftbelt, unsigned rightbelt, unsigned timeout)
+void act_picker(unsigned char leftchela, unsigned char rightchela, 
+               unsigned char leftbelt, unsigned char rightbelt, 
+               unsigned char timeout)
 {
        orte->picker.leftchela = leftchela;
        orte->picker.rightchela = rightchela;
index 880824ff9d6f0a4488bf1064c58ac1cba62cbd14..20d7e3ee07f638ad2dc844f9cafa9421ce0e8b3d 100644 (file)
@@ -63,13 +63,15 @@ extern "C" {
 
 void act_init(struct robottype_orte_data *ortedata);
 
-void act_lift(unsigned position);
-void act_chelas(unsigned left, unsigned right);
-void act_belts(int left, int right);
-void act_holder(unsigned position);
-void act_pusher(unsigned position);
+void act_lift(unsigned short int position);
+void act_chelas(unsigned char left, unsigned char right);
+void act_belts(unsigned char left, unsigned char right);
+void act_holder(unsigned char position);
+void act_pusher(unsigned short int position);
 /* FIXME: temporary function (LPCs not ready yet) */
-void act_picker(unsigned leftchela, unsigned rightchela, unsigned leftbelt, unsigned rightbelt, unsigned timeout);
+void act_picker(unsigned char leftchela, unsigned char rightchela, 
+               unsigned char leftbelt, unsigned char rightbelt, 
+               unsigned char timeout);
 
 #ifdef __cplusplus
 }