21 size_t fir_idx = blk_idx*FIRINGS_PER_BLOCK + blk_fir_idx;
23 for (
size_t scan_fir_idx = 0; scan_fir_idx <
SCANS_PER_FIRING; ++scan_fir_idx){
24 size_t byte_idx = RAW_SCAN_SIZE * (
25 SCANS_PER_FIRING*blk_fir_idx + scan_fir_idx);
26 printf(
"blk_idx=%lu, blk_fir_idx=%lu, fir_idx=%lu, scan_fir_idx=%lu,byte_idx=%lu\n", blk_idx, blk_fir_idx, fir_idx, scan_fir_idx, byte_idx);
32 printf(
"%d\n", 1236%1000);
36 t = t1*1.0 + t2 * 1e-6;
37 printf(
"timestamp =%f\n", t);
static const int SCANS_PER_FIRING
static const int BLOCKS_PER_PACKET
static const double FIRING_TOFFSET
static const double DSR_TOFFSET
static const int RAW_SCAN_SIZE
static const int FIRINGS_PER_BLOCK
static const double DISTANCE_RESOLUTION