Class AppInventor - GSTCH/SketchMadeEASY GitHub Wiki

RemoteControl AppInventor

Topic Specification
Description This class represent a App built with MIT AppInventor. The functionality is compatible with FlySky FS-i6X. All channels are available as input.

  • 2 Joystick, each with two JoystickAxis
  • 2 Potentiometer (VrA and VrB)
  • 3 Switch with 2 Position (SwA, SwB, SwD)
  • 1 Switch with 3 Position (SwC)
Constructor AppInventor(EHardwareSerialMode HardwareSerialMode)
Parameter
HardwareSerialMode: Works with HardwareSerial (Link). Choose one of enumeration:
  • scHard
  • scHard1
  • scHard2
  • scHard3

    AppInventor(int RxPin, int TxPin)
    Parameter
    RX Pin: SoftwareSerialMode, RX-Pin.
    TX Pin: SoftwareSerialMode TX-Pin
  • Range JoystickAxis: -255 … 255
    VariableInput: 0…1023
    Switch2Position: 0…1
    Switch3Position: 0…2
    Samples AppInventor* remoteControl = new AppInventor(scHard1);
    Examples 15-RemoteControl of a motor with an App
    Advanced It’s possible to enable the remote control by condition. For this it existing a constructor with an additional condition parameter:
    AppInventor(EHardwareSerialMode HardwareSerialMode, Condition* ConditionWhenEnabled)
    ⚠️ **GitHub.com Fallback** ⚠️