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

test motors mapping

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