debug mode, ranging timing 50 to 100ms
This commit is contained in:
parent
70448304f0
commit
95acdfe6bb
|
@ -47,12 +47,12 @@ extern "C" {
|
|||
/**
|
||||
* @brief Verbose level for all trace logs
|
||||
*/
|
||||
#define VERBOSE_LEVEL VLEVEL_OFF
|
||||
#define VERBOSE_LEVEL VLEVEL_M
|
||||
|
||||
/**
|
||||
* @brief Enable trace logs
|
||||
*/
|
||||
#define APP_LOG_ENABLED 0
|
||||
#define APP_LOG_ENABLED 1
|
||||
|
||||
/**
|
||||
* @brief Activate monitoring (probes) of some internal RF signals for debug purpose
|
||||
|
@ -75,7 +75,7 @@ extern "C" {
|
|||
* @brief Enable/Disable MCU Debugger pins (dbg serial wires)
|
||||
* @note by HW serial wires are ON by default, need to put them OFF to save power
|
||||
*/
|
||||
#define DEBUGGER_ENABLED 0
|
||||
#define DEBUGGER_ENABLED 1
|
||||
|
||||
/**
|
||||
* @brief Disable Low Power mode
|
||||
|
|
Binary file not shown.
|
@ -34,12 +34,12 @@ extern volatile uint8_t sts_lamp_bar_color, sts_color_occupy_vacant;
|
|||
|
||||
volatile sts_ppc_cfg_type_t ppc_cfg[10] = {
|
||||
{DOOR_SIDE_1300,10, 1300,0, 1200,8,33, DISTANCE_MODE_SHORT,175,231},
|
||||
{DOOR_JAM_1600, 10, 1600,0, 1300,8,33, DISTANCE_MODE_SHORT,175,231},
|
||||
{DOOR_JAM_2400, 10, 2400,400, 1900,8,50, DISTANCE_MODE_LONG,175,231},
|
||||
{DOOR_JAM_1600, 10, 1600,0, 1300,8,50, DISTANCE_MODE_SHORT,175,231},
|
||||
{DOOR_JAM_2400, 10, 2400,400, 1900,8,100, DISTANCE_MODE_LONG,175,231},
|
||||
{DOOR_JAM_3000, 10, 3000,1200, 2500,8,100,DISTANCE_MODE_LONG,175,231},
|
||||
{DOOR_JAM_3500, 10, 3500,1700, 3000,8,100,DISTANCE_MODE_LONG,175,231},
|
||||
{DOOR_JAM_4000, 10, 4000,2200, 3500,8,200,DISTANCE_MODE_LONG,175,231},
|
||||
{DOOR_JAM_NOW, 10, 2200, 400, 1800,8,50,DISTANCE_MODE_LONG,175,231},
|
||||
{DOOR_JAM_NOW, 10, 2200, 400, 1800,8,100,DISTANCE_MODE_LONG,175,231},
|
||||
};
|
||||
volatile sts_zone_center_by_rows_of_spads_t zone_center[4]={
|
||||
{4, 151, 247},
|
||||
|
@ -727,11 +727,11 @@ int sts_tof_vl53lx_presence_detection_init(void)
|
|||
|
||||
// Those basic I2C read functions can be used to check your own I2C functions */
|
||||
status = VL53L1_RdByte(dev, 0x010F, &byteData);
|
||||
APP_LOG(TS_OFF, VLEVEL_L,"VL53L1X Model_ID: %X\n", byteData);
|
||||
APP_LOG(TS_OFF, VLEVEL_H,"VL53L1X Model_ID: %X\n", byteData);
|
||||
status = VL53L1_RdByte(dev, 0x0110, &byteData);
|
||||
APP_LOG(TS_OFF, VLEVEL_L,"VL53L1X Module_Type: %X\n", byteData);
|
||||
APP_LOG(TS_OFF, VLEVEL_H,"VL53L1X Module_Type: %X\n", byteData);
|
||||
status = VL53L1_RdWord(dev, 0x010F, &wordData);
|
||||
APP_LOG(TS_OFF, VLEVEL_L,"VL53L1X: %X\n", wordData);
|
||||
APP_LOG(TS_OFF, VLEVEL_H,"VL53L1X: %X\n", wordData);
|
||||
sensor_id = wordData;
|
||||
wordData = 0;
|
||||
while (sensorState == 0) {
|
||||
|
@ -739,11 +739,11 @@ int sts_tof_vl53lx_presence_detection_init(void)
|
|||
HAL_Delay(2);
|
||||
wordData ++;
|
||||
if (wordData > 8000) {
|
||||
APP_LOG(TS_OFF, VLEVEL_L,"\n\n ***Failed to boot Chip***\n\n\n");
|
||||
APP_LOG(TS_OFF, VLEVEL_H,"\n\n ***Failed to boot Chip***\n\n\n");
|
||||
//return status;
|
||||
}
|
||||
}
|
||||
APP_LOG(TS_OFF, VLEVEL_M,"\nChip booted\n\n");
|
||||
APP_LOG(TS_OFF, VLEVEL_H,"\nChip booted\n\n");
|
||||
|
||||
/* Initialize and configure the device according to people counting need */
|
||||
status = VL53L1X_SensorInit(dev);
|
||||
|
|
Loading…
Reference in New Issue