Skip to content

Commit

Permalink
#251: Add LPP payload position in lpsTdoaTag.h
Browse files Browse the repository at this point in the history
  • Loading branch information
ataffanel committed Dec 6, 2017
1 parent 142a1fd commit e7976ca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 5 additions & 0 deletions src/deck/drivers/interface/lpsTdoaTag.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,14 @@ typedef struct rangePacket_s {
uint16_t distances[LOCODECK_NR_OF_TDOA2_ANCHORS];
} __attribute__((packed)) rangePacket_t;

// Positions in payload for received LPP packets
#define LPS_TDOA_LPP_HEADER (sizeof(rangePacket_t))
#define LPS_TDOA_LPP_TYPE (sizeof(rangePacket_t) + 1)
#define LPS_TDOA_LPP_PAYLOAD (sizeof(rangePacket_t) + 2)

// Positions for sent LPP packets
#define LPS_TDOA2_TYPE 0
#define LPS_TDOA2_SEND_LPP_PAYLOAD 1


#endif // __LPS_TDOA_TAG_H__
4 changes: 0 additions & 4 deletions src/deck/drivers/src/lpsTdoaTag.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,6 @@ static void handleLppPacket(const int dataLength, const packet_t* rxPacket) {
}
}


#define LPS_TDOA2_TYPE 0
#define LPS_TDOA2_SEND_LPP_PAYLOAD 1

// Send an LPP packet, the radio will automatically go back in RX mode
static void sendLppShort(dwDevice_t *dev, lpsLppShortPacket_t *packet)
{
Expand Down

0 comments on commit e7976ca

Please sign in to comment.