Skip to content

Commit

Permalink
Added uplink RSSI dBm to programming framework
Browse files Browse the repository at this point in the history
  • Loading branch information
MrD-RC committed Nov 5, 2024
1 parent 4fa7acd commit ec014c5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/programming/logic_condition.c
Original file line number Diff line number Diff line change
Expand Up @@ -804,6 +804,14 @@ static int logicConditionGetFlightOperandValue(int operand) {
#endif
break;

case LOGIC_CONDITION_OPERAND_FLIGHT_UPLINK_RSSI_DBM:
#if defined(USE_SERIALRX_CRSF) || defined(USE_RX_MSP)
return rxLinkStatistics.uplinkRSSI;
#else
return 0;
#endif
break;

case LOGIC_CONDITION_OPERAND_FLIGHT_LQ_DOWNLINK:
#if defined(USE_SERIALRX_CRSF) || defined(USE_RX_MSP)
return rxLinkStatistics.downlinkLQ;
Expand Down
1 change: 1 addition & 0 deletions src/main/programming/logic_condition.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ typedef enum {
LOGIC_CONDITION_OPERAND_FLIGHT_BATT_PROFILE, // int // 42
LOGIC_CONDITION_OPERAND_FLIGHT_FLOWN_LOITER_RADIUS, // 43
LOGIC_CONDITION_OPERAND_FLIGHT_LQ_DOWNLINK, // 44
LOGIC_CONDITION_OPERAND_FLIGHT_UPLINK_RSSI_DBM, // 45
} logicFlightOperands_e;

typedef enum {
Expand Down

0 comments on commit ec014c5

Please sign in to comment.