blob: 3bcbd17db58ed319082359e852cb804304e7ad06 [file] [log] [blame]
Alexander Hansen46a755f2025-10-27 16:31:08 +01001// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: Copyright 2017 Google Inc
Patrick Venture863b9242018-03-08 08:29:23 -08003
Patrick Venture863b9242018-03-08 08:29:23 -08004#include "readonly.hpp"
5
Patrick Ventureda4a5dd2018-08-31 09:42:48 -07006#include <stdexcept>
Patrick Venture863b9242018-03-08 08:29:23 -08007
Patrick Venturea0764872020-08-08 07:48:43 -07008namespace pid_control
9{
10
Harvey.Wua1ae4fa2022-10-28 17:38:35 +080011void ReadOnly::write([[maybe_unused]] double value)
Patrick Venture863b9242018-03-08 08:29:23 -080012{
13 throw std::runtime_error("Not supported.");
14}
15
Harvey.Wua1ae4fa2022-10-28 17:38:35 +080016void ReadOnlyNoExcept::write([[maybe_unused]] double value)
Patrick Venture863b9242018-03-08 08:29:23 -080017{
18 return;
19}
Patrick Venturea0764872020-08-08 07:48:43 -070020
21} // namespace pid_control