#ifndef ANCHOR_CONFIG_H
#define ANCHOR_CONFIG_H

// Anchor-specific configurations
#define MAX_PEER_DEVICES UWB_TAG_COUNT
#define PEER_DEVICE_TYPE "Tag"
#define PEER_PREFIX "T"
#define STATUS_PREFIX "Active Tags:"
#define WAITING_MESSAGE "No active tags"
#define SEARCHING_MESSAGE "Waiting..."

// UWB Capacity Settings for Anchor
#define CAPACITY_TAGS UWB_TAG_COUNT
#define CAPACITY_TIMESLOT 10
#define CAPACITY_EXT_MODE 1

// Anchor-specific behavior flags
#define ENABLE_TAG_TRACKING true
#define ENABLE_INTER_ANCHOR_COMM true
#define ENABLE_POSITION_CALCULATION true
#define ENABLE_COORDINATE_STORAGE true

// Distributed Positioning Settings
#define ANCHOR_DISCOVERY_INTERVAL 30000    // 30s between discovery broadcasts
#define POSITION_UPDATE_INTERVAL 60000     // 1min position recalculation
#define NEIGHBOR_TIMEOUT 90000             // 90s anchor neighbor timeout
#define MIN_ANCHORS_FOR_POSITIONING 3      // Minimum anchors needed for trilateration

// Inter-Anchor Communication
#define ANCHOR_BROADCAST_POWER "FD"        // Full power for inter-anchor comm
#define DISCOVERY_RETRY_COUNT 3            // Number of discovery attempts
#define POSITION_CONFIDENCE_THRESHOLD 0.8  // Minimum confidence for valid position

// Storage Settings
#define STORE_POSITION_IN_EEPROM true
#define EEPROM_POSITION_ADDRESS 0
#define POSITION_VALIDATION_CHECKS true

#endif // ANCHOR_CONFIG_H