38 #define JEVOIS_MAX_LEN 32
40 #define JEVOIS_MAX_COORD 18
42 #define JEVOIS_CHECK_DELIM(_c) (_c == ' ' || _c == '\n' || _c == '\r' || _c == '\0')
95 #if JEVOIS_SEND_FOLLOW_TARGET
99 AbiSendMsgFOLLOW_TARGET(
CAM_JEVOIS_ID, 0, 0, cam_heading, cam_height, 0.f);
119 if (jv->
buf[0] ==
'T' && jv->
buf[1] ==
'1') {
123 }
else if (jv->
buf[0] ==
'N' && jv->
buf[1] ==
'1') {
127 }
else if (jv->
buf[0] ==
'D' && jv->
buf[1] ==
'1') {
131 }
else if (jv->
buf[0] ==
'T' && jv->
buf[1] ==
'2') {
135 }
else if (jv->
buf[0] ==
'N' && jv->
buf[1] ==
'2') {
139 }
else if (jv->
buf[0] ==
'D' && jv->
buf[1] ==
'2') {
143 }
else if (jv->
buf[0] ==
'F' && jv->
buf[1] ==
'2') {
147 }
else if (jv->
buf[0] ==
'T' && jv->
buf[1] ==
'3') {
151 }
else if (jv->
buf[0] ==
'N' && jv->
buf[1] ==
'3') {
155 }
else if (jv->
buf[0] ==
'D' && jv->
buf[1] ==
'3') {
159 }
else if (jv->
buf[0] ==
'F' && jv->
buf[1] ==
'3') {
203 if (jv->
n == 2 * jv->
msg.
nb) {
240 if (jv->
n == jv->
msg.
nb) {
int jevois_mapping_setting
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
void jevois_setmapping(int number)
Set video mapping.
uint8_t uart_getch(struct uart_periph *p)
bool jevois_stream_setting
uint16_t uart_char_available(struct uart_periph *p)
Check UART for available chars in receive buffer.
Main include for ABI (AirBorneInterface).
static void jevois_send_message(void)
static void send_string(char *s)
int16_t coord[JEVOIS_MAX_COORD]
Paparazzi floating point algebra.
static void jevois_parse(struct jevois_t *jv, char c)
#define JEVOIS_MSG_T1
JEVOIS messages types.
void jevois_stream(bool activate)
Start and stop streaming.
#define JEVOIS_CHECK_DELIM(_c)
char extra[JEVOIS_MAX_LEN]
void uart_put_byte(struct uart_periph *p, long fd, uint8_t data)
Uart transmit implementation.
#define JEVOIS_NORM
Normalized data from JEVOIS are between -1000 and 1000.
#define JEVOIS_VFOV
Camera vertical FOV Camera has a 4/3 ratio.
#define JEVOIS_HFOV
Camera horizontal FOV From datasheet it should be 65deg, but it seems that better results are acheive...