Results for “telemetry”

Showing 11–20 of 30

  1. Challenge

    Mission elapsed time

    Parse the launch and the latest telemetry timestamp with datetime.fromisoformat(), subtract them to get the mission elapsed time, then time events reported by ground stations in three different time…

    Write the code Medium 2 stages datetime timedelta ISO 8601 time zones
  2. Challenge

    Missing reading

    …0 as missing, then do the same for an empty field in a telemetry line.

    Write the code Medium 2 stages if else None is None
  3. Challenge

    Path in a config

    The ground station keeps its telemetry on a Windows computer, and a config script tells the software where to save it. Someone wrote the path the way Windows shows it, and this is what the script…

    Fix the code Easy 2 stages raw strings escape sequences paths print
  4. Challenge

    Settings with defaults

    …it. Then print every setting: units: imperial language: en telemetry_rate_hz: 10 dark_mode: True alerts: all DEFAULTS.copy() makes a separate dict, and settings.update(user_settings) overwrites the…

    Write the code Medium 2 stages dictionaries copy update defaults
  5. Challenge

    Parser function

    …The alert checker and the daily report want to parse telemetry lines too, and copying the loop into each of them is how bugs get fixed in one place and not the other. Turn the parsing into a function…

    Fix the code Medium 2 stages functions return dictionaries None
  6. Challenge

    Flag from config text

    …typed by hand Operators edit this config by hand, so the telemetry setting can be yes , no , true or false , in any case and with stray spaces. Yes and true mean on; anything else means off. Print…

    Fix the code Easy 3 stages bool if else config
  7. Challenge

    Copy-pasted blocks

    …one loop. Keep the three level variables, which come from telemetry. The output must stay exactly the same: Tank A: 78.3% Tank B: 12.5% LOW Tank C: 46.0% Build tanks = [("A", tank_a), ("B", tank_b)…

    Fix the code Medium 2 stages refactoring for loop tuples lists
  8. Challenge

    Names with values

    The telemetry decoder hands over each frame as separate lists: the sensor names in one, the readings in another, in matching order. The display needs them back together: each name next to its value…

    Write the code Easy 2 stages for loop zip lists unpacking
  9. Challenge

    Date and time from a timestamp

    Every telemetry reading carries a timestamp in the international ISO 8601 format: 2026-03-14T09:30:05Z . Machines love it, because it sorts correctly as text, and people find it hard to read. Cut the…

    Write the code Easy 2 stages strings slicing indexing timestamp