21 lines
514 B
C
21 lines
514 B
C
#pragma once
|
|
#include <Arduino.h>
|
|
|
|
#define SENSOR_NODE_NAME "xiao_c6_sensor_node"
|
|
#define SENSOR_NODE_FIRMWARE_VERSION "0.1.0"
|
|
#define SENSOR_NODE_SCHEMA_VERSION 1
|
|
#define RS485_DE_PIN D2
|
|
#define RS485_TX_PIN D4
|
|
#define RS485_RX_PIN D5
|
|
#define BNO086_SDA_PIN D7
|
|
#define BNO086_SCL_PIN D8
|
|
#define GPS_RX_PIN D9
|
|
#define GPS_TX_PIN D10
|
|
#define BNO086_I2C_ADDRESS 0x4A
|
|
#define GPS_BAUD 9600
|
|
#define RS485_BAUD 115200
|
|
#define IMU_REPORT_INTERVAL_US 20000
|
|
#define TELEMETRY_INTERVAL_MS 200
|
|
#define SENSOR_STALE_MS 2000
|
|
|