Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: DW1000 ait_link BufferedSerial mbed
Diff: main_multi_range.cpp
- Revision:
- 9:3844cf7e5c00
- Parent:
- 6:9055fcc2f0cb
- Child:
- 10:6e95128c2efa
--- a/main_multi_range.cpp Tue Apr 05 09:25:35 2016 +0000
+++ b/main_multi_range.cpp Tue Apr 05 12:20:29 2016 +0000
@@ -48,20 +48,16 @@
const PinName DW_MISO_PIN = D12;
const PinName DW_SCLK_PIN = D13;
-//const int NUM_OF_DW_UNITS = 4;
-////const PinName DW_CS_PINS[NUM_OF_DW_UNITS] = {D7, D8, D9, D10};
-//const PinName DW_CS_PINS[NUM_OF_DW_UNITS] = {D8, D9, D14, D15};
const int NUM_OF_DW_UNITS = 4;
+// These CS pins are used on the Solo
+const PinName DW_CS_PINS[NUM_OF_DW_UNITS] = {D8, D9, D15, D14};
+// These CS pins are used on the pyramid
//const PinName DW_CS_PINS[NUM_OF_DW_UNITS] = {D7, D8, D9, D10};
-//const PinName DW_CS_PINS[NUM_OF_DW_UNITS] = {D8, D9, D15, D14};
-const PinName DW_CS_PINS[NUM_OF_DW_UNITS] = {D8, D9, D7, D10};
const int MAVLINK_MAX_NUM_OF_DW_UNITS = 4;
const int MAX_UWB_LINK_FRAME_LENGTH = 1024;
#if _DEBUG
-// CommMode comm_mode = ASCII;
- CommMode comm_mode = UWBLINK;
-// CommMode comm_mode = MAVLINK;
+ CommMode comm_mode = ASCII;
#else
// CommMode comm_mode = MAVLINK;
CommMode comm_mode = UWBLINK;