Tobi's ubw test branch
Dependencies: mavlink_bridge mbed
Fork of AIT_UWB_Range by
Diff: main.cpp
- Revision:
- 30:4ecc69d3cf8d
- Parent:
- 29:019ff388ed76
- Child:
- 31:6f76f3d518ac
--- a/main.cpp Fri Nov 28 16:45:10 2014 +0000 +++ b/main.cpp Fri Nov 28 17:06:51 2014 +0000 @@ -5,19 +5,19 @@ #include "MMRanging.h" // our self developed raning application PC pc(USBTX, USBRX, 921600); // USB UART Terminal -DW1000 dw(PA_7, PA_6, PA_5, PB_6, PB_9); // SPI1 on Nucleo Board (MOSI, MISO, SCLK, CS, IRQ) +DW1000 dw(PA_7, PA_6, PA_5, PB_6, PB_9); // Device driver instanceSPI pins: (MOSI, MISO, SCLK, CS, IRQ) MMRanging r(dw); // Ranging class for getting distances and later positions char message[100] = ""; int main() { pc.printf("DecaWave 0.2\r\nup and running!\r\n"); - dw.setEUI(0xFAEDCD01FAEDCD01); // basic methods called to check if we have a working SPI connection + dw.setEUI(0xFAEDCD01FAEDCD01); // basic methods called to check if we have a working SPI connection pc.printf("DEVICE_ID register: 0x%X\r\n", dw.getDeviceID()); pc.printf("EUI register: %016llX\r\n", dw.getEUI()); pc.printf("Voltage: %f\r\n", dw.getVoltage()); - r.receiver = true; + //r.receiver = true; while(1) { for(int j = 0; j < 10; j++)