Skip to content

Commit

Permalink
WARNING (READ DESCRIPTION)
Browse files Browse the repository at this point in the history
a typing error compromised the calculation of the radar system's meters, from this hash onwards -radar will work
  • Loading branch information
ANDRVV committed May 3, 2024
1 parent 7962cb7 commit 1ffcd83
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/C/RadarRSSI/RadarRSSI.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ double radiolocate(RFData RxFData, TransmitterData TXData, double DBPathLoss) {
info[1] = TXData.txAntennaDBI;
info[2] = TXData.txPowerDBM;
info[3] = (double)RxFData.channel;
info[4] = RxFData.receivedDBM - DBPathLoss;
info[4] = RxFData.receivedDBM + DBPathLoss;
return calculateFriis(info, 5);
}
2 changes: 1 addition & 1 deletion src/Go/RadarRSSI/RadarRSSI.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ func Radiolocate(RFData libs.RFData, TXData libs.TransmitterData, DBPathLoss flo
info = append(info, TXData.TXAntennaDBI)
info = append(info, TXData.TXPowerDBM)
info = append(info, float64(RFData.Channel))
info = append(info, RFData.ReceivedDBM - DBPathLoss)
info = append(info, RFData.ReceivedDBM + DBPathLoss)
return libs.CalculateFriis(info)
}
2 changes: 1 addition & 1 deletion src/Python/RadarRSSI/RadarRSSI.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ def Radiolocate(RxFData: RFData, TXData: TransmitterData, DBPathLoss: float) ->
info.append(TXData.TXAntennaDBI)
info.append(TXData.TXPowerDBM)
info.append(float(RxFData.Channel))
info.append(RxFData.ReceivedDBM - DBPathLoss)
info.append(RxFData.ReceivedDBM + DBPathLoss)
return CalculateFriis(info)

0 comments on commit 1ffcd83

Please sign in to comment.