lps deck don't work

All discussions related to the Loco Positioning system
Post Reply
arix
Member
Posts: 47
Joined: Fri Sep 01, 2017 1:45 am

lps deck don't work

Post by arix »

:D :D i installed lps deck but it can't work call you tell me why?Thank you~
config.mk :ESTIMATOR = kalman
LPS_TDMA_ENABLE=1
CFLAGS += -DTDMA_NSLOTS_BITS=1

SYS: Build 20:0e886c2c3176 (2017.06-20) MODIFIED
SYS: I am 0x37303638343551192B0039 and I have 1024KB of flash!
CFGBLK: v1, verification [OK]
DECK_DRIVERS: Found 10 drivers
DECK_INFO: Found 1 deck memory.
DECK_INFO: Memory error: wrong header ID
DECK_INFO: Deck 0 has corrupt OW memory. No driver will be initialized!
DECK_CORE: 0 deck enumerated
MPU9250 I2C connection [OK].
AK8963 I2C connection [OK].
LPS25H I2C connection [OK].
ESTIMATOR: Estimator type forced
ESTIMATOR: Using estimator 2
EEPROM: I2C connection [OK].
AK8963: Self test [OK].
SYS: Free heap: 192-08 bytes
now i know use write-ow but i don't know how to change usepins . and what usedpins is used for uwb? :oops: :oops:
kristoffer
Bitcraze
Posts: 630
Joined: Tue Jun 30, 2015 7:47 am

Re: lps deck don't work

Post by kristoffer »

The Loco Positioning deck should work out of the box and there should not be any need to configure use pins.

Have you tried the system in Two way ranging mode (the default standard mode) with the standard Crazyflie firmware? This setup should work out of the box and is a good way to find out if your hardware is OK.
arix
Member
Posts: 47
Joined: Fri Sep 01, 2017 1:45 am

Re: lps deck don't work

Post by arix »

sorry i draw my deck pcb so i need to write ow .
Updated id=3
Type : 1
Size : 112
Valid : True
Name : None
VID : 0xBC
PID : 0x06
Pins : 0x1C021C13
Elements :
Board revision=A
Board name=bcDWM1000
This is my write but i don't know pins so i am tring . can you help me how to change to correct.
arix
Member
Posts: 47
Joined: Fri Sep 01, 2017 1:45 am

Re: lps deck don't work

Post by arix »

SYS: Crazyflie 2.0 is up and running!
SYS: Build 39:e51e195cfe8f (2017.06-39) MODIFIED
SYS: I am 0x37303638343551192B0039 and I have 1024KB of flash!
CFGBLK: v1, verification [OK]
DECK_DRIVERS: Found 11 drivers
DECK_INFO: Found 0 deck memory.
DECK_INFO: compile-time forced driver bcDWM1000 added
DECK_CORE: 1 deck enumerated
DWM: Failed to configure DW1000!
MPU9250 I2C connection [OK].
AK8963 I2C connection [OK].
LPS25H I2C connection [OK].
ESTIMATOR: Using estimator 2
EEPROM: I2C connection [OK].
MPU6500: Self test gyro X [FAIL]. low: -14.0, high: 14.0, measured: 26.98
AK8963: Self test [OK].
DWM: Error while initializing DWM1000
DECK_CORE: Deck 0 test [FAIL].

static const DeckDriver dwm1000_deck = {
.vid = 0xBC,
.pid = 0x06,
.name = "bcDWM1000",
.usedPeriph = DECK_USING_SPI,
.usedGpio = DECK_USING_RX1|DECK_USING_TX1|DECK_USING_SCK | DECK_USING_MISO | DECK_USING_MOSI | DECK_USING_IO_1, // FIXME: set the used pins
.requiredEstimator = kalmanEstimator,

.init = dwm1000Init,
.test = dwm1000Test,
};

i try force driver but can't configure dw1000 i don't know what i need to do now .
Post Reply