InfiniTimeOrg / InfiniTimeOrg/InfiniSim
Add motionController to sim controls
Nobody has claimed this yet.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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