I'm wanting to force two deck drivers on my CF, but I can't figure out the right way to add the extra deck to my config.mk file. Having one flag works correctly, but two throws errors when i 'make'.
Hi,
There is no way to do it in the current code. I wanted the syntax "CFLAGS += -DDECK_FORCE=TSL2561Deck,bcOA" to work but I never had time to implement it (string splitting in C isn't very funny to work with ....).
One way I have used previously was to hack-in a new variable DECK_FORCE1 by copy pasting how DDECK_FORCE is implemented in the crazyflie, there is a couple of places in this file: https://github.com/bitcraze/crazyflie-f ... info.c#L56
It works! Both decks drivers are forces now. Thank you very much for the directions.
Maybe the extra DECK_FORCE fix could be implemented into the firmware, and into the config.mk file? For others to find in the future? It's not the most elegant solution, but it does work for now.
If so, I can agree that it is better than nothing at all. I still would like to fix it in a cleaner way (with colon separated name for example), but if you pull request the hack fix I will merge it .
Will do a pull request when I know that it's table.
Right now I'm getting two red leds on startup, and can't get it off the ground via CfLib. I can sometimes connect via the client, and see that both decks are logging, but can't connect via URI.
Is there a limit to the amount of I2C devices? Right now it's running 3: Flow, OA and TLS2561 which is my own. Works if i remove the DECK_FORCE for either OA or TLS2561.
No there is no hard limit on the number of I2C devices you can access. Two red leds means a hard-fault condision or assert very early in the boot process.
It would be useful to find where it blocks. If you are starting tasks in both your drivers it could be a memory problem, you could try to increase the heap size (https://github.com/bitcraze/crazyflie-f ... nfig.h#L58).
Inceased the FREERTOS_HEAP_SIZE to 90000, after unsuccessfully increasing it to 60000. I Still get 2 red leds, but if i connect via the Client, and then restarts the CF, it starts up like normal. But without the CFClient connection, it locks up.
hello
I also want solve extra force deck, but i can't understand what you say. can you tell me the detial information about copy DECK_FORCE and pasting DECK_FORCE1.