Skip to content

fix(fsm): wake vehicle from offline/asleep when signals arrive#54

Open
atulmgupta wants to merge 2 commits into
mainfrom
fix/fleet-telemetry-dashboard-v2
Open

fix(fsm): wake vehicle from offline/asleep when signals arrive#54
atulmgupta wants to merge 2 commits into
mainfrom
fix/fleet-telemetry-dashboard-v2

Conversation

@atulmgupta
Copy link
Copy Markdown
Contributor

HandleSignalReceived was defined but never called from the telemetry pipeline. When a vehicle went offline (e.g., telemetry disconnected) and signals resumed, DetectTriggers only checks for Gear/Charge/Speed triggers — none of which fire TriggerSignalReceived. The vehicle stayed stuck in offline even with active telemetry.

Fix: call HandleSignalReceived at the start of ProcessSignals when the vehicle is in asleep or offline state. This transitions to online first, then ProcessSignals detects the actual state (charging, etc).

Description

Closes #

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would break existing functionality)
  • Documentation update
  • Infrastructure / CI change

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have added tests that prove my fix is effective or my feature works
  • New and existing tests pass locally
  • I have updated the documentation accordingly
  • My changes generate no new warnings

Screenshots (if applicable)

atulmgupta and others added 2 commits April 17, 2026 13:43
HandleSignalReceived was defined but never called from the telemetry
pipeline. When a vehicle went offline (e.g., telemetry disconnected)
and signals resumed, DetectTriggers only checks for Gear/Charge/Speed
triggers — none of which fire TriggerSignalReceived. The vehicle
stayed stuck in offline even with active telemetry.

Fix: call HandleSignalReceived at the start of ProcessSignals when
the vehicle is in asleep or offline state. This transitions to online
first, then ProcessSignals detects the actual state (charging, etc).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant