aprs.me/priv/repo/migrations/20250801215236_add_parser_improvements.exs
Graham McIntire 86d3837075
feat: Add support for enhanced APRS parser features
- Added position resolution field (posresolution) showing accuracy in meters
  - 18.52m for uncompressed positions
  - 0.291m for compressed positions
- Added format field indicating "compressed" or "uncompressed" position type
- Added telemetry support with three new fields:
  - telemetry_seq: sequence number
  - telemetry_vals: array of telemetry values
  - telemetry_bits: binary telemetry bits
- Updated packet schema and database migration
- Enhanced packet extraction logic to handle new fields
- All tests pass successfully

These improvements provide better position accuracy information and
enable telemetry packet processing from APRS stations.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-01 16:57:28 -05:00

16 lines
384 B
Elixir

defmodule Aprsme.Repo.Migrations.AddParserImprovements do
use Ecto.Migration
def change do
alter table(:packets) do
# Position resolution and format
add :posresolution, :float
add :format, :string
# Telemetry fields
add :telemetry_seq, :integer
add :telemetry_vals, {:array, :integer}
add :telemetry_bits, :string
end
end
end