Files
overland-controller/firmware/xiao-esp32c6-sensor-node/sensor_node_config.h
T

24 lines
663 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 BNO086_I2C_ADDRESS_ALTERNATE 0x4B
#define BNO086_I2C_CLOCK_HZ 100000
#define GPS_FALLBACK_BAUD 9600
#define GPS_BAUD_DETECT_MS 2500
#define RS485_BAUD 115200
#define IMU_REPORT_INTERVAL_US 20000
#define TELEMETRY_INTERVAL_MS 200
#define SENSOR_STALE_MS 2000
#define USB_TELEMETRY_ENABLED 1