Include dependency graph for kb_khepera3.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Defines | |
#define | KNET_INT0 40 /* KNET_INT0 is on GPIO40 */ |
#define | IN 1 |
#define | OUT 0 |
#define | KH3_ERROR_SUCCESS 0 /* No errors */ |
#define | KH3_ERROR_KBINIT -1 /* Unable to initialize the korebot library */ |
#define | KH3_ERROR_FRMSZ -2 /* Frame received doesnt have the expected size */ |
#define | KH3_ERROR_SZFMT -3 /* Frame size received should be 1 byte wide, wrong format */ |
#define | KH3_ERROR_FRMSND -4 /* Unable to send a command frame to the khepera3 */ |
Functions | |
int | kh3_init (void) |
int | kh3_getcommand (knet_dev_t *, unsigned char *) |
int | kh3_sendcommand (knet_dev_t *, unsigned char *) |
char * | kh3_proximity_ir (char *, knet_dev_t *) |
char * | kh3_ambiant_ir (char *, knet_dev_t *) |
char * | kh3_battery_voltage (char *, knet_dev_t *) |
char * | kh3_reset_tstamp (char *, knet_dev_t *) |
char * | kh3_revision (char *, knet_dev_t *) |
char * | kh3_configure_os (char *, unsigned char, unsigned char, knet_dev_t *) |
char * | kh3_measure_us (char *, unsigned char, knet_dev_t *) |
|
Definition at line 20 of file kb_khepera3.h. Referenced by kh3_init(). |
|
Definition at line 31 of file kb_khepera3.h. Referenced by kh3_sendcommand(). |
|
Definition at line 29 of file kb_khepera3.h. Referenced by kh3_getcommand(). |
|
Definition at line 28 of file kb_khepera3.h. Referenced by kh3_init(). |
|
Khepera3 Error codes Definition at line 27 of file kb_khepera3.h. |
|
Definition at line 30 of file kb_khepera3.h. Referenced by kh3_getcommand(). |
|
Khepera3 <-> Korebot gpios pin definitions Definition at line 19 of file kb_khepera3.h. Referenced by kh3_ambiant_ir(), kh3_battery_voltage(), kh3_configure_os(), kh3_init(), kh3_measure_us(), kh3_proximity_ir(), kh3_reset_tstamp(), and kh3_revision(). |
|
Definition at line 21 of file kb_khepera3.h. Referenced by gpioinit(), and kb_lrf_Init(). |
|
kh3_ambiant_ir retrieves an instant IR measure.
Definition at line 183 of file kb_khepera3.c. References kb_gpio_get(), kh3_getcommand(), kh3_sendcommand(), and KNET_INT0. Referenced by ambIR(). Here is the call graph for this function: |
|
kh3_battery_Voltage retrieves the actual battery voltage.
Definition at line 218 of file kb_khepera3.c. References kb_gpio_get(), kh3_getcommand(), kh3_sendcommand(), and KNET_INT0. Referenced by voltageBAT(). Here is the call graph for this function: |
|
kh3_configure configures the current firmware operation mode. a configuration array is used by the khepera3 to decide its mode of operation.
Definition at line 341 of file kb_khepera3.c. References kb_gpio_get(), kh3_getcommand(), kh3_sendcommand(), and KNET_INT0. Referenced by configureOS(). Here is the call graph for this function: |
|
kh3_getcommand gets a command frame from a given khepera3 device. Function flow:
Normally an end user don't want to use these function as they are assumed as "low level functions".
Definition at line 81 of file kb_khepera3.c. References KB_ERROR, KB_ERROR_KH3FRMSZERR, KB_ERROR_KH3SZFMTERR, KH3_ERROR_FRMSZ, KH3_ERROR_SZFMT, and knet_llread(). Referenced by kh3_ambiant_ir(), kh3_battery_voltage(), kh3_configure_os(), kh3_measure_us(), kh3_proximity_ir(), kh3_reset_tstamp(), and kh3_revision(). Here is the call graph for this function: |
|
kh3_init initializes some things like the GPIO40 pin. This function needs to be called BEFORE any other functions.
Definition at line 36 of file kb_khepera3.c. References IN, KB_ERROR, KB_ERROR_KH3KBINIT, kb_gpio_dir(), kb_gpio_function(), kb_gpio_init(), kb_init(), KH3_ERROR_KBINIT, and KNET_INT0. Referenced by initKH3(). Here is the call graph for this function: |
|
kh3_measure_us retrieves measure from a given US transmitter.
Definition at line 375 of file kb_khepera3.c. References kb_gpio_get(), kh3_getcommand(), kh3_sendcommand(), and KNET_INT0. Referenced by measureUS(). Here is the call graph for this function: |
|
kh3_proximity_ir retrieves an instant IR measure.
Definition at line 145 of file kb_khepera3.c. References kb_gpio_get(), kh3_getcommand(), kh3_sendcommand(), and KNET_INT0. Referenced by proxIR(). Here is the call graph for this function: |
|
kh3_reset_tstamp resets the absolute timestamp.
Definition at line 255 of file kb_khepera3.c. References kb_gpio_get(), kh3_getcommand(), kh3_sendcommand(), and KNET_INT0. Referenced by tstampRST(). Here is the call graph for this function: |
|
kh3_revision retrieves the current OS version/revision
Definition at line 288 of file kb_khepera3.c. References kb_gpio_get(), kh3_getcommand(), kh3_sendcommand(), and KNET_INT0. Referenced by revisionOS(). Here is the call graph for this function: |
|
kh3_sendcommand sets a command frame to a given khepera3 device. Normally and end user don't want to use these function as they are assumed as "low level functions".
Definition at line 120 of file kb_khepera3.c. References KB_ERROR, KB_ERROR_KH3FRMSNDERR, KH3_ERROR_FRMSND, and knet_llwrite(). Referenced by kh3_ambiant_ir(), kh3_battery_voltage(), kh3_configure_os(), kh3_measure_us(), kh3_proximity_ir(), kh3_reset_tstamp(), and kh3_revision(). Here is the call graph for this function: |