if (pGuiMonSel->rangeDopplerHeatMap == 1) { itemPayloadLen = obj->numRangeBins * obj->numDopplerBins * sizeof(uint16_t); message.body.detObj.tlv[tlvIdx].length = itemPayloadLen; message.body.detObj.tlv[tlvIdx].type = MMWDEMO_OUTPUT_MSG_RANGE_DOPPLER_HEAT_MAP; message.body.detObj.tlv[tlvIdx].address = (uint32_t) obj->detMatrix; tlvIdx++; totalPacketLen += sizeof(MmwDemo_output_message_tl) + itemPayloadLen; }所以要找 rangeDopplerHearMap enable 的地方。
在mmw/mss/cli.c
static int32_t MmwDemo_CLIGuiMonSel (int32_t argc, char* argv[]) { MmwDemo_GuiMonSel guiMonSel; MmwDemo_message message; int8_t subFrameNum; if(MmwDemo_CLIGetSubframe(argc, argv, 8, &subFrameNum) < 0) { return -1; } /* Initialize the guiMonSel configuration: */ memset ((void *)&guiMonSel, 0, sizeof(MmwDemo_GuiMonSel)); /* Populate configuration: */ guiMonSel.detectedObjects = atoi (argv[2]); guiMonSel.logMagRange = atoi (argv[3]); guiMonSel.noiseProfile = atoi (argv[4]); guiMonSel.rangeAzimuthHeatMap = atoi (argv[5]); guiMonSel.rangeDopplerHeatMap = atoi (argv[6]); guiMonSel.statsInfo = atoi (argv[7]);這個function 是....
cliCfg.tableEntry[cnt].cmd = "guiMonitor"; cliCfg.tableEntry[cnt].helpString = "subFrameIdx detectedObjects logMagRange noiseProfile rangeAzimuthHeatMap rangeDopplerHeatMap statsInfo"; cliCfg.tableEntry[cnt].cmdHandlerFxn = MmwDemo_CLIGuiMonSel; cnt++;所以是 guiMonitor 的倒數第二個參數。
沒有留言:
張貼留言