Skip to content
Snippets Groups Projects
Commit 6618adb4 authored by Timothe Jost's avatar Timothe Jost
Browse files

test mapping axes

parent ee4461bf
No related branches found
No related tags found
No related merge requests found
......@@ -62,13 +62,19 @@ typedef enum
typedef uint32_t mcu_actuator;
#define ACTUATOR_0 0
#define ACTUATOR_1 1
#define ACTUATOR_2 2
#define ACTUATOR_3 3
#define ACTUATOR_0 0 // by default : axis X
#define ACTUATOR_1 6 // by default : axis Y
#define ACTUATOR_2 2 // by default : axis Z
#define ACTUATOR_3 3 // by default : axis A
#define ACTUATOR_FIRST ACTUATOR_0
#define ACTUATOR_LAST ACTUATOR_2
#define MCU_SYSTEM_ACT_MAX_COUNT (ACTUATOR_2 + 1)
#define MCU_SYSTEM_ACT_MAX_COUNT 2 // total : 4 actuators
const mcu_actuator actuators[MCU_SYSTEM_ACT_MAX_COUNT] = {ACTUATOR_0, ACTUATOR_1} //, ACTUATOR_2, ACTUATOR_3};
#define ACTUATOR_FIRST 0
#define ACTUATOR_LAST (MCU_SYSTEM_ACT_MAX_COUNT - 1)
// #define ACTUATOR_FIRST ACTUATOR_0
// #define ACTUATOR_LAST ACTUATOR_2
#endif
......@@ -110,7 +110,7 @@ mcu_error initSystem()
int axisMask = 0;
for (mcu_actuator act = ACTUATOR_FIRST; act <= ACTUATOR_LAST; act++)
{
mcu_error initStatus = initActuator(act);
mcu_error initStatus = initActuator(actuators[act]);
if (initStatus == MCU_ERROR_NONE)
{
axisMask |= (1 << act);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment