mixer_module: rename Offboard_Actuator_Set to Peripheral_via_Actuator_Set

Offboard is a bit too specifically tied to Offboard mode.
This commit is contained in:
Beat Küng 2023-11-08 10:19:06 +01:00
parent c7e11f1774
commit 8e0a2e38fe
No known key found for this signature in database
GPG Key ID: 866DB5F0E24821BB
3 changed files with 4 additions and 4 deletions

View File

@ -38,7 +38,7 @@
#include <uORB/topics/vehicle_command.h>
/**
* Functions: Offboard_Actuator_Set1 ... Offboard_Actuator_Set6
* Functions: Peripheral_via_Actuator_Set1 ... Peripheral_via_Actuator_Set6
*/
class FunctionActuatorSet : public FunctionProviderBase
{
@ -72,7 +72,7 @@ public:
}
}
float value(OutputFunction func) override { return _data[(int)func - (int)OutputFunction::Offboard_Actuator_Set1]; }
float value(OutputFunction func) override { return _data[(int)func - (int)OutputFunction::Peripheral_via_Actuator_Set1]; }
private:
static constexpr int max_num_actuators = 6;

View File

@ -57,7 +57,7 @@ static const FunctionProvider all_function_providers[] = {
{OutputFunction::Constant_Max, &FunctionConstantMax::allocate},
{OutputFunction::Motor1, OutputFunction::MotorMax, &FunctionMotors::allocate},
{OutputFunction::Servo1, OutputFunction::ServoMax, &FunctionServos::allocate},
{OutputFunction::Offboard_Actuator_Set1, OutputFunction::Offboard_Actuator_Set6, &FunctionActuatorSet::allocate},
{OutputFunction::Peripheral_via_Actuator_Set1, OutputFunction::Peripheral_via_Actuator_Set6, &FunctionActuatorSet::allocate},
{OutputFunction::Landing_Gear, &FunctionLandingGear::allocate},
{OutputFunction::Landing_Gear_Wheel, &FunctionLandingGearWheel::allocate},
{OutputFunction::Parachute, &FunctionParachute::allocate},

View File

@ -13,7 +13,7 @@ functions:
Servo:
start: 201
count: 8
Offboard_Actuator_Set:
Peripheral_via_Actuator_Set:
start: 301
count: 6