iCub-main
icub-main
src
libraries
icubmod
motionControlLib
canControlConstants.h
Go to the documentation of this file.
1
// -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*-
2
3
/*
4
* Copyright (C) 2008 The RobotCub Consortium
5
* Author: Lorenzo Natale
6
* website: www.robotcub.org
7
* Permission is granted to copy, distribute, and/or modify this program
8
* under the terms of the GNU General Public License, version 2 or any
9
* later version published by the Free Software Foundation.
10
*
11
* A copy of the license can be found at
12
* http://www.robotcub.org/icub/license/gpl.txt
13
*
14
* This program is distributed in the hope that it will be useful, but
15
* WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
17
* Public License for more details
18
*/
19
20
#ifndef __CANCONTROLCONSTANTS__
21
#define __CANCONTROLCONSTANTS__
22
23
// this constant determines the number of requests (messages)
24
// that can be queued by a thread before waiting on synch().
25
// the worst case is when a request is sent to all joints of a
26
// netowork, we use 50 to be conservative.
27
const
int
BUF_SIZE
=500;
28
const
int
debug_mask
= 0x20;
29
33
const
int
CAN_MAX_CARDS
= 16;
34
const
int
ESD_MAX_CARDS
= 16;
35
36
// Max number of threads allowed to communicate with the
37
// CanBusMotionControl object at the same time.
38
// Since the thread table is allocated statically
39
// this value is a constant.
40
const
int
CANCONTROL_MAX_THREADS
=500;
41
45
const
int
PLXCAN_MAX_CARDS
= 16;
46
47
#endif
ESD_MAX_CARDS
const int ESD_MAX_CARDS
Definition:
canControlConstants.h:34
BUF_SIZE
const int BUF_SIZE
Definition:
canControlConstants.h:27
CANCONTROL_MAX_THREADS
const int CANCONTROL_MAX_THREADS
Definition:
canControlConstants.h:40
CAN_MAX_CARDS
const int CAN_MAX_CARDS
Max number of addressable cards in this implementation.
Definition:
canControlConstants.h:33
PLXCAN_MAX_CARDS
const int PLXCAN_MAX_CARDS
Max number of addressable cards in this implementation.
Definition:
canControlConstants.h:45
debug_mask
const int debug_mask
Definition:
canControlConstants.h:28
Generated on Wed Nov 13 2024 21:11:41 for iCub-main by
1.9.1