This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

IWR6843: Accessing the Range-Doppler Heatmap

Part Number: IWR6843

So I was wondering if the range-Doppler heatmap is output in row major or column major order.


The code says:

tl[tlvIdx].type = MMWDEMO_OUTPUT_MSG_RANGE_DOPPLER_HEAT_MAP;
tl[tlvIdx].length = subFrameCfg->numRangeBins * subFrameCfg->numDopplerBins * sizeof(uint16_t);
packetLen += sizeof(MmwDemo_output_message_tl) + tl[tlvIdx].length;
tlvIdx++;


for(i = 0; i < subFrameCfg->numRangeBins; i++)
{
    UART_writePolling (uartHandle,
    (uint8_t*)&detMatrix[i * subFrameCfg->numDopplerBins],
    sizeof(uint16_t));
}


So I think it is in row major order, i.e.:

(Range 1, Doppler 1), (Range 1, Doppler 2), ..., (Range 1, Doppler N), (Range 2, Doppler 1), (Range 2, Doppler 2), ..., (Range 2, Doppler N), etc

Am I correct about this?

Thanks!