This commit is contained in:
2025-04-28 00:07:47 +02:00
parent 3cd643f5da
commit f438f711ca
2 changed files with 93 additions and 58 deletions

View File

@@ -13,6 +13,12 @@
#define DownlinkPacketType_Ping 1
#define DownlinkPacketType_ACK 255
#define BME680_PRESENT_BIT (1 << 0)
#define CCS811_PRESENT_BIT (1 << 1)
#define MPU9250_PRESENT_BIT (1 << 2)
#define INA260_PRESENT_BIT (1 << 3)
#define MCP23018_PRESENT_BIT (1 << 4)
typedef struct __attribute__((packed))
{
char syncPhrase[10];
@@ -91,6 +97,8 @@ typedef struct __attribute__((packed))
int16_t currentServoB;
int16_t targetServoB;
uint8_t presentDevices;
uint8_t telemetryIndex;
} TelemetryPacket;