STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
fsw::control::ControllerService::PWMTarget Struct Reference

Where one propellant's PWM commands go. More...

#include <ControllerService.hpp>

Collaboration diagram for fsw::control::ControllerService::PWMTarget:
[legend]

Public Member Functions

bool resolved () const

Public Attributes

std::string board_ip
uint8_t channel = 0
std::string actuator_name

Detailed Description

Where one propellant's PWM commands go.

Both fields come from config via [controller].pwm_*_actuator → [actuator_roles] → [boards.*]; there are deliberately no defaults, because a default is this process inventing a rig layout it cannot know. channel == 0 means "config did not say" and the target must never be addressed.

Definition at line 36 of file ControllerService.hpp.

Member Function Documentation

◆ resolved()

bool fsw::control::ControllerService::PWMTarget::resolved ( ) const
inline

Definition at line 41 of file ControllerService.hpp.

References board_ip, and channel.

Referenced by fsw::control::ControllerService::sendPWMCommands().

Member Data Documentation

◆ actuator_name

std::string fsw::control::ControllerService::PWMTarget::actuator_name

Definition at line 39 of file ControllerService.hpp.

◆ board_ip

◆ channel

uint8_t fsw::control::ControllerService::PWMTarget::channel = 0

The documentation for this struct was generated from the following file: