Sensor: Add primitive to sensor mutex

Open
#329 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Locate the implementations and call sites for sensor_mutex_reserve and sensor_mutex_release, then read how the sensor mutex is currently represented and used. Add the requested mutex primitive so reservation reports whether it succeeds and the reserved state is tracked atomically; done means both reserve and release use the new behavior consistently.

Written by the indexing model from the issue text.

Description

enhancement good first issue

Version: 2.8.0

Describe the feature you'd like
We currently call sensor_mutex_reserve and sensor_mutex_release without a mutex primitive. We could add an atomic bool that holds whether or not the mutex is currently reserved, and give some indication of if reserving the mutex succeeds.

Describe alternatives you've considered
N/A

Additional context
N/A

Points of Contact
Firmware Lead: @NArmistead

Dominant language
C
Stars
8
Forks
6
Avg merge
6d 15h
Merged PRs (30d)
1

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.

More from SunDevilRocketry/Flight-Computer-Firmware

All issues in SunDevilRocketry/Flight-Computer-Firmware

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.