- int type = AltosLib.uint8(bytes, 4 + 1);
-/*
- switch (type) {
- case packet_type_TM_sensor:
- case packet_type_Tm_sensor:
- case packet_type_Tn_sensor:
- telem = new AltosTelemetrySensor(bytes);
- break;
- case packet_type_configuration:
- telem = new AltosTelemetryConfiguration(bytes);
- break;
- case packet_type_location:
- telem = new AltosTelemetryLocation(bytes);
- break;
- case packet_type_satellite:
- telem = new AltosTelemetrySatellite(bytes);
- break;
- case packet_type_companion:
- telem = new AltosTelemetryCompanion(bytes);
- break;
- case packet_type_MM_sensor:
- telem = new AltosTelemetryMegaSensor(bytes);
- break;
- case packet_type_MM_data:
- telem = new AltosTelemetryMegaData(bytes);
- break;
- default:
- telem = new AltosTelemetryRaw(bytes);
- break;
- }
-*/