This code holds the complete demo set for the sx1280: PingPong, PER and Ranging Outdoor demo application. >>>>> This code MUST run on the mbed library release 127 or everything will be painfully slow.
Dependencies: mbed SX1280Lib DmTftLibrary
* This code MUST run on the mbed library release 127 or everything will be painfully slow.*
Diff: Demo/DemoApplication.cpp
- Revision:
- 5:a0f5842fb337
- Parent:
- 4:e9daf4ed7b4c
- Child:
- 6:e4c4a6878542
--- a/Demo/DemoApplication.cpp Mon Mar 27 17:57:48 2017 +0000 +++ b/Demo/DemoApplication.cpp Mon Apr 03 14:58:51 2017 +0000 @@ -1433,6 +1433,7 @@ printf( "StopDemoApplication\n\r" ); if( Radio.GetOpMode( ) == MODE_SLEEP ) { + Radio.Wakeup( ); InitializeDemoParameters( Eeprom.EepromData.DemoSettings.ModulationType ); } RX_LED = 0; @@ -1768,7 +1769,7 @@ Radio.SetTxParams( Eeprom.EepromData.DemoSettings.TxPower, RADIO_RAMP_20_US ); memcpy( &( ModulationParams.Params.LoRa.SpreadingFactor ), Eeprom.Buffer + MOD_RNG_SPREADF_EEPROM_ADDR, 1 ); memcpy( &( ModulationParams.Params.LoRa.Bandwidth ), Eeprom.Buffer + MOD_RNG_BW_EEPROM_ADDR, 1 ); - switch( Eeprom.EepromData.ModulationParams.Params.LoRa.Bandwidth ) + switch( ModulationParams.Params.LoRa.Bandwidth ) { case LORA_BW_0400: Eeprom.EepromData.DemoSettings.RngCalib = RNG_CALIB_0400[ ( ModulationParams.Params.LoRa.SpreadingFactor >> 4 ) - 5 ]; @@ -1903,7 +1904,7 @@ } if( mean <= 18.5 ) { - // _TCO_ acces à la correction frequence et rssi + // _TCO_ acces a la correction frequence et rssi // double RngFei; // Ranging Frequency Error Indicator // double RngFeiFactor; // Ranging frequency correction factor // int8_t RssiValue; // Demo Rssi Value