Test pour l'ouverture du port serie d'Arduino.
Plus de détails...
#include <opencv2/opencv.hpp>
#include <iostream>
#include <fstream>
#include <sys/stat.h>
#include <sys/types.h>
#include <fcntl.h>
#include <errno.h>
#include <termios.h>
#include <unistd.h>
#include <cstring>
|
int | open_serial (const char *device) |
|
void | send_coordinates (int x, int y) |
|
void | on_decision_mouse (int event, int x, int y, int, void *) |
| Handles mouse events in the "Decision" window.
|
|
void | on_mouse (int event, int x, int y, int, void *userdata) |
| Captures the image if mouse is on the designated area.
|
|
int | main () |
|
Test pour l'ouverture du port serie d'Arduino.
◆ main()
◆ on_decision_mouse()
void on_decision_mouse |
( |
int | event, |
|
|
int | x, |
|
|
int | y, |
|
|
int | , |
|
|
void * | ) |
Handles mouse events in the "Decision" window.
- Paramètres
-
◆ on_mouse()
void on_mouse |
( |
int | event, |
|
|
int | x, |
|
|
int | y, |
|
|
int | , |
|
|
void * | userdata ) |
Captures the image if mouse is on the designated area.
- Paramètres
-
◆ open_serial()
int open_serial |
( |
const char * | device | ) |
|
◆ send_coordinates()
void send_coordinates |
( |
int | x, |
|
|
int | y ) |
Sends the coordinates to the serial Port
◆ capturedFrame
◆ imageCaptured
bool imageCaptured = false |
◆ posX
◆ posY
◆ programShouldFinish
bool programShouldFinish = false |
◆ STEP_SIZE
◆ time_id