Driver for the SX1280 RF Transceiver

Dependents:   SX1280PingPong RangignMaster RangingSlave MSNV2-Terminal_V1-6 ... more

Revision:
6:057a5290df98
Parent:
5:b4014e8b7be1
Child:
7:88669efa3779
--- a/sx1280.cpp	Mon May 22 11:23:03 2017 +0000
+++ b/sx1280.cpp	Mon May 22 11:29:14 2017 +0000
@@ -740,7 +740,7 @@
                 case RANGING_RESULT_RAW:
                     // Convert the ranging LSB to distance in meter
                     // The theoretical conversion from register value to distance [m] is given by:
-                    //distance [m] = ( complement2( register ) * 150 ) / ( 2^12 * bandwidth[MHz] ) )
+                    // distance [m] = ( complement2( register ) * 150 ) / ( 2^12 * bandwidth[MHz] ) )
                     // The API provide BW in [Hz] so the implemented formula is complement2( register ) / bandwidth[Hz] * A,
                     // where A = 150 / (2^12 / 1e6) = 36621.09
                     val = ( double )complement2( valLsb, 24 ) / ( double )this->GetLoRaBandwidth( ) * 36621.09375;