InfiniTimeOrg / InfiniTimeOrg/InfiniSim

Add motionController to sim controls

Open
#39 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C++
Stars
203
Forks
97
PR merge metrics
No merged PRs in 30d

Description

I'd like to control the motion to trigger some shake-based events. For now it would suffice to simulate the accumulated speed in any direction to sim the shake motion calibrated through the shake calibration settings app.

From what I understand of the code, there has to be at least a button assignment in main.cpp and probably one can manipulate the motionController there. I have yet to play around with that.

My use-case is a Dice app, that I'd like to control with the shake motion. I'm already done for the most part of that app, but want a way to sim this in InfiniSim. Any help / additional info on what parts of the code I have to touch in InfiniSim would help me a lot :)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in main.cpp and trace how simulator controls are assigned and how motionController is accessed. Determine how an assigned control should simulate accumulated speed in any direction using the shake calibration settings, then verify that shake-based events in the Dice app can be triggered through InfiniSim.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
embedded-iot
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.