Sticks : Add utility functions to get pitch, roll, throttle and yaw values intuitively and rename ambiguously named function checkAndSetStickInputs()

This commit is contained in:
Junwoo Hwang
2022-03-23 11:54:05 +01:00
committed by Matthias Grob
parent db7430aa65
commit 8266a4df98
2 changed files with 11 additions and 2 deletions
@@ -44,7 +44,7 @@ Sticks::Sticks(ModuleParams *parent) :
ModuleParams(parent)
{}
bool Sticks::checkAndSetStickInputs()
bool Sticks::checkAndUpdateStickInputs()
{
// Sticks are rescaled linearly and exponentially to [-1,1]
manual_control_setpoint_s manual_control_setpoint;