|
Paparazzi UAS
v5.14.0_stable-0-g3f680d1
Paparazzi is a free software Unmanned Aircraft System.
|
#include "modules/sensors/cameras/jevois.h"#include "std.h"#include "mcu_periph/uart.h"#include "subsystems/abi.h"#include "math/pprz_algebra_float.h"#include <stdio.h>
Include dependency graph for jevois.c:Go to the source code of this file.
Data Structures | |
| struct | jevois_msg_t |
| struct | jevois_t |
Macros | |
| #define | JEVOIS_MAX_LEN 32 |
| #define | JEVOIS_MAX_COORD 18 |
| #define | JEVOIS_CHECK_DELIM(_c) (_c == ' ' || _c == '\n' || _c == '\r' || _c == '\0') |
Enumerations | |
| enum | jevois_state { JV_SYNC = 0, JV_TYPE, JV_ID, JV_SIZE, JV_COORD, JV_DIM, JV_QUAT, JV_EXTRA, JV_SEND_MSG } |
Functions | |
| void | jevois_init (void) |
| static void | jevois_send_message (void) |
| static void | jevois_parse (struct jevois_t *jv, char c) |
| void | jevois_event (void) |
| static void | send_string (char *s) |
| void | jevois_stream (bool activate) |
| Start and stop streaming. More... | |
| void | jevois_setmapping (int number) |
| Set video mapping. More... | |
Variables | |
| int | jevois_mapping_setting |
| bool | jevois_stream_setting |
| struct jevois_t | jevois |
Definition in file jevois.c.
| struct jevois_msg_t |
Collaboration diagram for jevois_msg_t:| Data Fields | ||
|---|---|---|
| int16_t | coord[JEVOIS_MAX_COORD] | |
| uint16_t | dim[3] | |
| char | extra[JEVOIS_MAX_LEN] | |
| char | id[JEVOIS_MAX_LEN] | |
| uint8_t | nb | |
| struct FloatQuat | quat | |
| uint8_t | type | |
| struct jevois_t |
Collaboration diagram for jevois_t:| Data Fields | ||
|---|---|---|
| char | buf[JEVOIS_MAX_LEN] | |
| uint8_t | idx | |
| struct jevois_msg_t | msg | |
| uint8_t | n | |
| enum jevois_state | state | |
| #define JEVOIS_CHECK_DELIM | ( | _c | ) | (_c == ' ' || _c == '\n' || _c == '\r' || _c == '\0') |
Definition at line 42 of file jevois.c.
Referenced by jevois_parse().
| #define JEVOIS_MAX_LEN 32 |
Definition at line 38 of file jevois.c.
Referenced by jevois_init(), and jevois_parse().
| enum jevois_state |
| void jevois_event | ( | void | ) |
Definition at line 324 of file jevois.c.
References jevois, JEVOIS_DEV, jevois_parse(), uart_char_available(), and uart_getch().
Here is the call graph for this function:| void jevois_init | ( | void | ) |
Definition at line 80 of file jevois.c.
References jevois_t::buf, jevois_t::idx, jevois, jevois_mapping_setting, JEVOIS_MAX_LEN, jevois_stream_setting, JV_SYNC, jevois_t::n, and jevois_t::state.
|
static |
Definition at line 104 of file jevois.c.
References jevois_t::buf, CAM_JEVOIS_ID, jevois_msg_t::coord, jevois_msg_t::dim, jevois_msg_t::extra, jevois_msg_t::id, jevois_t::idx, JEVOIS_CHECK_DELIM, JEVOIS_MAX_LEN, JEVOIS_MSG_D1, JEVOIS_MSG_D2, JEVOIS_MSG_D3, JEVOIS_MSG_F2, JEVOIS_MSG_F3, JEVOIS_MSG_N1, JEVOIS_MSG_N2, JEVOIS_MSG_N3, JEVOIS_MSG_T1, JEVOIS_MSG_T2, JEVOIS_MSG_T3, jevois_send_message(), JV_COORD, JV_DIM, JV_EXTRA, JV_ID, JV_QUAT, JV_SEND_MSG, JV_SIZE, JV_SYNC, JV_TYPE, jevois_t::msg, jevois_t::n, jevois_msg_t::nb, FloatQuat::qi, jevois_msg_t::quat, FloatQuat::qx, FloatQuat::qy, FloatQuat::qz, jevois_t::state, and jevois_msg_t::type.
Referenced by jevois_event().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 93 of file jevois.c.
References CAM_JEVOIS_ID, jevois_msg_t::coord, jevois, JEVOIS_HFOV, JEVOIS_NORM, JEVOIS_VFOV, and jevois_t::msg.
Referenced by jevois_parse().
Here is the caller graph for this function:| void jevois_setmapping | ( | int | number | ) |
Set video mapping.
| [in] | number | video mapping number |
Definition at line 353 of file jevois.c.
References jevois_mapping_setting, jevois_stream(), and send_string().
Here is the call graph for this function:| void jevois_stream | ( | bool | activate | ) |
Start and stop streaming.
| [in] | activate | enable or disable streaming |
Definition at line 343 of file jevois.c.
References jevois_stream_setting, and send_string().
Referenced by jevois_setmapping().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 334 of file jevois.c.
References JEVOIS_DEV, and uart_put_byte().
Referenced by jevois_setmapping(), and jevois_stream().
Here is the call graph for this function:
Here is the caller graph for this function:| struct jevois_t jevois |
Definition at line 77 of file jevois.c.
Referenced by jevois_event(), jevois_init(), and jevois_send_message().
| int jevois_mapping_setting |
Definition at line 34 of file jevois.c.
Referenced by jevois_init(), and jevois_setmapping().
| bool jevois_stream_setting |
Definition at line 35 of file jevois.c.
Referenced by jevois_init(), and jevois_stream().