Add units in km to display

This commit is contained in:
30hours 2023-11-10 16:55:18 +10:30
parent 7389b76263
commit eab1b07b86
5 changed files with 22 additions and 6 deletions

View file

@ -10,16 +10,16 @@ capture:
process:
data:
cpi: 1
buffer: 1.5
buffer: 3
overlap: 0
ambiguity:
delayMin: -10
delayMax: 300
dopplerMin: -300
dopplerMax: 300
dopplerMin: -250
dopplerMax: 250
clutter:
delayMin: -10
delayMax: 400
delayMax: 300
detect:
pfa: 0.000001
nGuard: 10

View file

@ -95,10 +95,22 @@ var intervalId = window.setInterval(function () {
annotations: [],
displayModeBar: false,
xaxis: {
title: {
text: 'Bistatic Range (km)',
font: {
size: 24
}
},
ticks: '',
side: 'bottom'
},
yaxis: {
title: {
text: 'Bistatic Doppler (Hz)',
font: {
size: 24
}
},
ticks: '',
ticksuffix: ' ',
autosize: false,

View file

@ -121,7 +121,7 @@ std::string Map<T>::to_json()
rapidjson::Value arrayDelay(rapidjson::kArrayType);
for (int i = 0; i < delay.size(); i++)
{
arrayDelay.PushBack(delay[i], allocator);
arrayDelay.PushBack(delay_km[i], allocator);
}
// store Doppler array

View file

@ -32,6 +32,9 @@ public:
/// @brief Delay units of map data (bins).
std::deque<int> delay;
/// @brief Delay units of map data (km).
std::deque<double> delay_km;
/// @brief Doppler units of map data (Hz).
std::deque<double> doppler;
@ -101,4 +104,4 @@ public:
bool save(std::string json, std::string path);
};
#endif
#endif

View file

@ -79,6 +79,7 @@ Ambiguity::Ambiguity(int32_t _delayMin, int32_t _delayMax, int32_t _dopplerMin,
for (int i = 0; i < nDelayBins; i++)
{
map->delay.push_back(delay[i]);
map->delay_km.push_back(((double)delay[i] * (299792458/(double)fs)) / 1000);
}
for (int i = 0; i < nDopplerBins; i++)
{