Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/channel management #29

Merged
merged 20 commits into from
Jul 20, 2020
Merged

Conversation

ryan-summers
Copy link
Member

@ryan-summers ryan-summers commented Jul 9, 2020

This PR implements the top-level API needed for adding the RF channel management task to RTIC.

It also adds support for configuring alarms on channels, measuring channel characteristics, and disabling channels. The only unimplemented feature is enabling a channel, which is intentionally omitted for safety reasons until we can verify the functionality of the interlock thresholds in #3.

This addresses most of #5

src/rf_channel.rs Outdated Show resolved Hide resolved
src/rf_channel.rs Outdated Show resolved Hide resolved
src/rf_channel.rs Outdated Show resolved Hide resolved
src/rf_channel.rs Outdated Show resolved Hide resolved
src/rf_channel.rs Outdated Show resolved Hide resolved
src/booster_channels.rs Outdated Show resolved Hide resolved
src/rf_channel.rs Outdated Show resolved Hide resolved
src/rf_channel.rs Outdated Show resolved Hide resolved
src/rf_channel.rs Outdated Show resolved Hide resolved
src/rf_channel.rs Outdated Show resolved Hide resolved
src/rf_channel.rs Outdated Show resolved Hide resolved
Copy link
Member

@jordens jordens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ticked the wrong box on the first review above.
Needs some changes. Most are minor.

src/booster_channels.rs Show resolved Hide resolved

/// Disable the channel and power it off.
pub fn disable(&mut self) -> Result<(), Error> {
self.pins.power_down_channel();
Copy link
Member

@jordens jordens Jul 17, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does matter and let's not risk it. The PA datasheet, the schematic, and the current code all insist on this sequence (rf off, then pinching off before removing the drain voltage).
disable() is just the reverse of enable().

src/rf_channel.rs Outdated Show resolved Hide resolved
Copy link
Member

@jordens jordens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few more things.

src/rf_channel.rs Outdated Show resolved Hide resolved
src/rf_channel.rs Outdated Show resolved Hide resolved
src/rf_channel.rs Outdated Show resolved Hide resolved
src/rf_channel.rs Outdated Show resolved Hide resolved
@ryan-summers ryan-summers merged commit 8fb8574 into develop Jul 20, 2020
@ryan-summers ryan-summers deleted the feature/channel-management branch July 20, 2020 07:24
@jordens jordens mentioned this pull request Dec 17, 2020
@hartytp hartytp mentioned this pull request Dec 21, 2020
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.

2 participants