Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1202,6 +1202,11 @@ void fastcat::Manager::SaveActuatorPosFile()
WARNING("Could not move: %s, file may not exist", pos_file.c_str());
}

if (actuator_pos_map_.empty()) {
WARNING("Actuator position map is empty, skipping save to: %s", pos_file.c_str());
return;
}

YAML::Node file_node;
for (auto pos_pair = actuator_pos_map_.begin();
pos_pair != actuator_pos_map_.end(); ++pos_pair) {
Expand Down
Loading