-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathConfig.h
More file actions
51 lines (36 loc) · 1012 Bytes
/
Config.h
File metadata and controls
51 lines (36 loc) · 1012 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifndef Config_h
#define Config_h
#include <Arduino.h>
#include "./src/ArduinoLog/ArduinoLog.h"
#include "./src/mavlink/ardupilotmega/mavlink.h"
// DEBUG MODE
#define DEBUG_MODE // Comentar para desactivar debug
// Use 0-2. Larger for more debugging messages
#define FLASH_DEBUG 0
// SERIAL BAUDS
#define SERIAL_BAUD 57600
#define SERIAL_BAUD_TELEM 57600
// COND VALUES (PARAMS)
#define COND_ALTITUDE 10 //cm
#define DISTANCE_SENSOR_FILTER_COUNT 2 // tries
#define LANDING_ALTITUDE 50 // from where conditionals works
// MAVLINK
// This Device
#define SYSID 1
#define COMPID 191
// Target Device
#define TARGET_SYSID 1
#define TARGET_COMPID 1
// GCS
#define GCS_SYSID 255
#define GCS_COMPID 190
// Intervals
#define HEARTBEAT_INTERVAL 1000 //ms 1 vez por segundo
#define DISTANCE_SENSOR_INTERVAL 200000
#define EXTENDED_SYS_STATE_INTERVAL 200000
// Time to lost link
#define LOST_TIME 5 //s
// Virtual EEPROM
const int WRITTEN_SIGNATURE = 0xBEEFDEED;
const int START_ADDRESS = 0;
#endif