I am working in Android, and I would like to remap the left trigger button. Currently, it points the camera gimbal straight ahead. I would like to have it do something in my app (not change change the drone at all).
// This didn’t change anything:
var buttonEventSet = HashSet(1);
// All actions just to see if anything changes
buttonEventSet.add (ButtonEvent.FRONT_BOTTOM_BUTTON)
buttonEventSet.add (ButtonEvent.FRONT_TOP_BUTTON)
buttonEventSet.add (ButtonEvent.LEFT_SLIDER_DOWN)
buttonEventSet.add (ButtonEvent.LEFT_SLIDER_UP)
buttonEventSet.add (ButtonEvent.LEFT_STICK_DOWN)
buttonEventSet.add (ButtonEvent.LEFT_STICK_LEFT)
buttonEventSet.add (ButtonEvent.LEFT_STICK_RIGHT)
buttonEventSet.add (ButtonEvent.LEFT_STICK_UP)
buttonEventSet.add (ButtonEvent.REAR_LEFT_BUTTON)
buttonEventSet.add (ButtonEvent.REAR_RIGHT_BUTTON)
buttonEventSet.add (ButtonEvent.RIGHT_SLIDER_DOWN)
buttonEventSet.add (ButtonEvent.RIGHT_SLIDER_UP)
buttonEventSet.add (ButtonEvent.RIGHT_STICK_DOWN)
buttonEventSet.add (ButtonEvent.RIGHT_STICK_LEFT)
buttonEventSet.add (ButtonEvent.RIGHT_STICK_RIGHT)
buttonEventSet.add (ButtonEvent.RIGHT_STICK_UP)
val buttonsMappingEntry = ButtonsMappingEntry (Drone.Model.ANAFI_THERMAL, ButtonsMappableAction.APP_ACTION_10, buttonEventSet);
Any help would be appreciated.