Thanks Tobias!! Check out the attached image. Looks like the sensor is reading!
Like you said, it looks like it needs a bit of fine tuning but at least I know it works now. The goal is to use the sensor to have a very controlled hover, so it needs to be working optimally.
VL6180X_IDENTIFICATION_MODEL_ID (0x0000) should return 0xB4 if it is working correctly... and when I put the following code in it is not. status = i2cdevRead16(I2Cx, devAddr, VL6180X_IDENTIFICATION_MODEL_ID, 2, &data); if (status == 0xB4) { DEBUG_PRINT("vl6180x Initialized.\n"); i2cdev...
Thanks Tobias. The function is already called in stabilizer.c. Maybe if you get a chance, can you look at my code? Not sure what to try next. I think the get register functions are working since that is how it is initializing but I have a feeling the set register functions aren't actually working wi...
Hi Tobias, I made some good progress over the weekend. The sensor is now initializing and testing OK (even debug_printing now!!). I just need to get the default settings loaded into the sensor and it to begin reading the distance. Here is my code for you to check out https://github.com/mwall002/craz...
It is compiling and is creating the .o file. I'm calling the vl6180xInit( ) function from the vl6180x.h file just like the eeprom.h file. But I see there is a configblockeeprom.c file in the utils folder that is also calling the eepromInit( ) function. Is that is the one that is really working? I wi...
Here is the vl6180x.c code (make file code in the previous post). I obviously call the vl6180xInit function in the vl6180x.h file. I don't see any reason why it doesn't print just like the eeprom code. #define DEBUG_MODULE "vl6180x" #include "stm32fxxx.h" #include "FreeRTOS....
I believe I have it in the right place. I have tried it every way possible actually with no change. ############### Source files configuration ################ # Init PROJ_OBJ = main.o PROJ_OBJ_CF1 = platform_cf1.o PROJ_OBJ_CF2 = platform_cf2.o # Drivers PROJ_OBJ += exti.o nvic.o motors.o PROJ_OBJ_C...
Hi Tobias, I have added the drivers to the make file and it is creating the .o files but still get no debug print on the console from the new files I have created. I even started over by downloading all of the latest firmware, copied the eeprom driver files, named these copies of the .c and .h files...