break;
case DEADLINE:
break;
+ }
}
+
+void rcv_cl_sensor_cmd_cb(const ORTERecvInfo *info, void *vinstance,
+ void *recvCallBackParam)
+{
+ struct robottype_orte_data *orte_data = (struct robottype_orte_data *)recvCallBackParam;
+
+ switch (info->status) {
+ case NEW_DATA:
+ unsigned char data[1];
+ data[0] = orte_data->bank_nbr;
+ can_send(CAN_CL_SENSOR_CMD, 1, data);
+ break;
+ case DEADLINE:
+ break;
+ }
}
int main(int argc, char *argv[])
robottype_subscriber_jaws_cmd_create(&orte, rcv_jaws_cmd_cb, &orte);
robottype_subscriber_lift_cmd_create(&orte, rcv_lift_cmd_cb, &orte);
robottype_subscriber_can_msg_create(&orte, rcv_can_msg_cb, &orte);
-
-
+ robottype_subscriber_cl_sensor_cmd_create(&orte, rcv_cl_sensor_cmd_cb, &orte);
printf("subscribers OK\n");
/* main loop */