+
Skip to content

Store calibration parameters in flash #490

Open
@BlakeFreer

Description

@BlakeFreer

Thinking about semi-stable parameters like the pedal voltage limits which change upon reassembly. Not stable values like vehicle track width.

These values are currently compiled into the firmware (see FrontController/physical.hpp) which makes it difficult to update.

We should store these values in a separate region of flash so they can be updated on the fly.

Sample procedure:

  1. Driver enters a "calibration mode" through the dashboard.

  2. Dashboard displays the current parameters. Modifiable ones have a button "recalibrate"

  3. User selects a parameter, say "accelerator pedal range"

  4. Dashboard guides the user through a calibration sequence, like "fully press the pedal, hold, now fully release, hold. repeat 5x"

  5. Dashboard calculates the new parameter values (ex max value=avg max voltage of the 5 cycles)

  6. Dashboard tells front controller to update the value in flash memory

  7. Front controller now uses this value

LittleFS would help with this

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载