style: member functions should be lower camel
Rename member functions to be lower camel instead of snake case.
Change-Id: Ib227fd3dadb6d9607290277205223a4324cd4ce5
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/pid/stepwisecontroller.cpp b/pid/stepwisecontroller.cpp
index 1e6c301..875a470 100644
--- a/pid/stepwisecontroller.cpp
+++ b/pid/stepwisecontroller.cpp
@@ -32,7 +32,7 @@
void StepwiseController::process(void)
{
// Get input value
- float input = input_proc();
+ float input = inputProc();
ec::StepwiseInfo info = get_stepwise_info();
@@ -57,12 +57,12 @@
lastOutput = output;
// Output new value
- output_proc(output);
+ outputProc(output);
return;
}
-std::unique_ptr<Controller> StepwiseController::CreateStepwiseController(
+std::unique_ptr<Controller> StepwiseController::createStepwiseController(
ZoneInterface* owner, const std::string& id,
const std::vector<std::string>& inputs, const ec::StepwiseInfo& initial)
{
@@ -81,13 +81,13 @@
return thermal;
}
-float StepwiseController::input_proc(void)
+float StepwiseController::inputProc(void)
{
double value = _owner->getCachedValue(_inputs.at(0));
return static_cast<float>(value);
}
-void StepwiseController::output_proc(float value)
+void StepwiseController::outputProc(float value)
{
_owner->addRPMSetPoint(value);