Preserving for posterity before update to 18 column

This commit is contained in:
John Poole 2026-05-26 07:34:11 -07:00
commit de2262f747
2 changed files with 42 additions and 15 deletions

View file

@ -410,4 +410,32 @@ SELECT
FROM ble_observation FROM ble_observation
GROUP BY trial_id, receiver, heard; GROUP BY trial_id, receiver, heard;
--
-- for mapping
--
CREATE VIEW IF NOT EXISTS v_map_observation_points AS
SELECT
obs_id,
trial_id,
receiver,
heard,
rx_epoch_ms,
rx_epoch_s,
rx_lat,
rx_lon,
rx_gps_age_ms,
rssi,
avg_rssi,
payload_seq,
tx_epoch_ms,
rx_tx_delta_ms
FROM ble_observation
WHERE rx_lat IS NOT NULL
AND rx_lon IS NOT NULL;
CREATE VIEW IF NOT EXISTS v_map_good_gps_points AS
SELECT *
FROM v_map_observation_points
WHERE rx_gps_age_ms <= 5000;
COMMIT; COMMIT;

View file

@ -24,22 +24,21 @@
# #
# Example: # Example:
# flo/20260525_194537_FLO_ble_search.log.manifest # flo/20260525_194537_FLO_ble_search.log.manifest
#
# Simple key=value format:
#
# trial_name=Peck Cottage ED FLO BLE walk test 20260525_1945
# trial_label=peck_cottage_ed_flo_20260525_1945
# firmware_exercise=26_Bluetooth_discover
# firmware_git_commit=unknown
# field_site=Peck Cottage steps
# operator=jlpoole
# receiver_role=moving
# receiver_start_description=upside-down plastic pot at Peck Cottage steps
# receiver_notes=FLO was hand-carried north and across the street, then returned to base.
# test_notes=Two-unit BLE discovery test. ED stationary, FLO moving.
#
=pod =pod
Simple key=value format:
trial_name=Peck Cottage ED FLO BLE walk test 20260525_1945
trial_label=peck_cottage_ed_flo_20260525_1945
firmware_exercise=26_Bluetooth_discover
firmware_git_commit=unknown
field_site=Peck Cottage steps
operator=jlpoole
receiver_role=moving
receiver_start_description=upside-down plastic pot at Peck Cottage steps
receiver_notes=FLO was hand-carried north and across the street, then returned to base.
test_notes=Two-unit BLE discovery test. ED stationary, FLO moving.
An after import smoke test: An after import smoke test:
sqlite3 -header -column ble_fieldtest_20260525_1945_ed_flo.sqlite \ sqlite3 -header -column ble_fieldtest_20260525_1945_ed_flo.sqlite \