Skip to content
Merged
Show file tree
Hide file tree
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
12 changes: 11 additions & 1 deletion lib/python_bindings/espp/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -759,6 +759,17 @@ class Logger:
pass



def get_verbosity(self) -> Logger.Verbosity:
"""*
* @brief Get the current verbosity for the logger.
* @return The current verbosity level.
* \sa Logger::Verbosity
*

"""
pass

def set_verbosity(self, level: Logger.Verbosity) -> None:
"""*
* @brief Change the verbosity for the logger. \sa Logger::Verbosity
Expand Down Expand Up @@ -2147,7 +2158,6 @@ class Pid:
"""Auto-generated default constructor with named params"""
pass


def set_config(self, config: Pid.Config, reset_state: bool = True) -> None:
"""*
* @brief Change the gains and other configuration for the PID controller.
Expand Down
9 changes: 3 additions & 6 deletions lib/python_bindings/pybind_espp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,9 @@ void py_init_module_espp(py::module &m) {
} // end of inner classes & enums of Logger

pyClassLogger.def(py::init<const espp::Logger::Config &>())
.def("get_verbosity", &espp::Logger::get_verbosity,
"*\n * @brief Get the current verbosity for the logger.\n * @return The current "
"verbosity level.\n * \\sa Logger::Verbosity\n *\n")
.def("set_verbosity", &espp::Logger::set_verbosity, py::arg("level"),
"*\n * @brief Change the verbosity for the logger. \\sa Logger::Verbosity\n * "
"@param level new verbosity level\n")
Expand Down Expand Up @@ -2129,12 +2132,6 @@ void py_init_module_espp(py::module &m) {
"*\n * @brief Get the ID for this Task's thread / task context.\n * @return ID for "
"this Task's thread / task context.\n * @warning This will only return a valid id if "
"the task is started.\n")
.def_static("get_id", py::overload_cast<const espp::Task &>(&espp::Task::get_id),
py::arg("task"),
"*\n * @brief Get the ID for the Task's thread / task context.\n * @param "
"task Reference to the task for which you want the ID.\n * @return ID for this "
"Task's thread / task context.\n * @warning This will only return a valid id "
"if the task is started.\n")
.def_static("get_current_id", &espp::Task::get_current_id,
"*\n * @brief Get the ID for the current thread / task context.\n * @return "
"ID for the current thread / task context.\n");
Expand Down