Ok, so I now made it like this, mapping channels to joystick axis with a dictionary:
sbusChannel_to_JoystickAxis = { 0: 3, 1: 5, 8: 2, } for sbusChannel, joystickaxis in sbusChannel_to_JoystickAxis.items(): rawValue = get_axis[joystickaxis] mapped_value = map(rawValue,-1,1,192,1792) sbusOutput.set_channel(sbusChannel, int(mapped_value))Is this the proper way and best way to do it? Or is there a better way?