Illustrated C/C++ source sheets, symbol index, API relationship graph, compiler console and debug trace

LIVE AI / FLEXIBLE SENSING / FLIGHT CONTEXT

Sensoraia API

Live AI and sensing, connected to the flight.
See, listen, inspect and return supported results while airborne.

Loading...
Searching...
No Matches
ear_heatmap_replay.c File Reference

Offline CSV replay utility for validating EARcam heatmaps and fusion. More...

#include "modules/ear_cam/ear_heatmap.h"
#include "version.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Include dependency graph for ear_heatmap_replay.c:

Go to the source code of this file.

Macros

#define _POSIX_C_SOURCE   200809L

Functions

static int parse_line (const char *line, struct ear_sample *s)
 Decode one EAR session row into the shared fusion sample structure.
int main (int argc, char **argv)
 Recompute an EAR loudest-spot result and emit decorated/field JPEGs.

Variables

static struct ear_sample samples [EAR_MAX_SAMPLES]

Detailed Description

Offline CSV replay utility for validating EARcam heatmaps and fusion.

Definition in file ear_heatmap_replay.c.

Macro Definition Documentation

◆ _POSIX_C_SOURCE

#define _POSIX_C_SOURCE   200809L

Definition at line 22 of file ear_heatmap_replay.c.

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

Recompute an EAR loudest-spot result and emit decorated/field JPEGs.

Parameters
argcCommand-line argument count.
argvExpects a session CSV and destination JPEG, or a help/version switch.
Returns
0 on completed output, 2 for usage errors, or 1 when the log has no valid solve.

The undecorated sibling preserves clean heat colors for later map overlay; the decorated JPEG remains the human-readable result and both share one .geo frame.

Definition at line 76 of file ear_heatmap_replay.c.

◆ parse_line()

int parse_line ( const char * line,
struct ear_sample * s )
static

Decode one EAR session row into the shared fusion sample structure.

Parameters
lineComma-separated log row in the order documented by the session header.
sReceives the parsed measurement; the caller owns this sample slot.
Returns
0 for all twelve required fields, or -1 for an incomplete/malformed row.

Keeping replay on ear_sample makes the same solver and renderer handle recorded evidence and live USHER snapshots.

Definition at line 49 of file ear_heatmap_replay.c.

Variable Documentation

◆ samples

struct ear_sample samples[EAR_MAX_SAMPLES]
static

Bounded workspace matches EARcam's runtime sample ceiling; replay never grows with log size.

Definition at line 39 of file ear_heatmap_replay.c.