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

set_powersでrangeつかう #16

Open
H1rono opened this issue Aug 23, 2024 · 0 comments
Open

set_powersでrangeつかう #16

H1rono opened this issue Aug 23, 2024 · 0 comments

Comments

@H1rono
Copy link
Member

H1rono commented Aug 23, 2024

void OutputMachine::set_powers(
const std::array<std::pair<uint16_t, uint16_t>, THRUSTER_NUM>& pulsewidths_us
) {
if (this->state() != State::RUNNING) {
return;
}
this->outputs.set_powers(pulsewidths_us);
}

ここ
state次第では引数が評価されない場合があるので、rangesで遅延されるようにしたい

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

No branches or pull requests

1 participant