1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-25 09:16:01 +03:00

ifdef USE_TELEMETRY_SBUS2

This commit is contained in:
Marcelo Bezerra 2024-07-18 23:38:19 +02:00
parent 4e07f77133
commit cf4fab8809
2 changed files with 7 additions and 1 deletions

View file

@ -18,6 +18,8 @@
#include "telemetry/sbus2.h"
#include "telemetry/sbus2_sensors.h"
#ifdef USE_TELEMETRY_SBUS2
void send_RPM(uint8_t port, uint32_t RPM)
{
uint32_t value = 0;
@ -726,4 +728,5 @@ void SBUS2_transmit_telemetry_data(uint8_t slotId , const uint8_t *bytes)
sbusTelemetryDataUsed[slotId] = 1;
}
}
}
#endif

View file

@ -22,6 +22,8 @@
#include "platform.h"
#ifdef USE_TELEMETRY_SBUS2
// Sensor code from https://github.com/BrushlessPower/SBUS2-Telemetry
// SBUS2 telemetry: 2ms deadtime after rc package
// One new slot every 700us
@ -116,3 +118,4 @@ void send_jetcat(uint8_t port, uint32_t rpm, uint16_t egt, uint16_t pump_volt, u
void SBUS2_transmit_telemetry_data(uint8_t slotId , const uint8_t *bytes);
#endif