# Hovercraft arduino bluetooth documentation Version: 1.1.0 Created by: Tomas Parizek ## Changelog **Version 1.1.0 (23.7.2019):** - `Fire weapon` section added **Version 1.0.2 (22.7.2019):** - `Set specific speed and direction of both motors` section added - `Reverse motors` command deprecated **Version 1.0.1 (19.7.2019):** - `Set specific speed of both motors` section added - Changelog added ## Commands ### Set speed of motors - Command: `{motor id}{speed}x` - Description: Sets new speed value to the motor(s). - Parametr description: - motor id: a = Left motor, b = Right motor, c = Left and right motors - speed: Int. Range 0-255. ### Set specific speed of both motors - Command: `d{speedA}_{speedB}x` - Added in version 1.0.1 - Description: Sets new speed value to both motors (speedA to motor A, speedB to motor B). - Parametr description: - speedA, speedB: Int. Range 0-255. ### Set specific speed and direction of both motors - Command: `e{speedA}_{speedB}_{directionA}_{directionB}x` - Added in version 1.0.2 - Description: Sets new speed value to both motors (speedA to motor A, speedB to motor B). - Parametr description: - speedA, speedB: Int. Range 0-255. - directionA, directionB: Bool (0 == backwards, 1 == forwads) ### Reverse motors - **Deprecated in version 1.0.2 !** - Command: `r` - Description: Reverse the direction of motors - toggle direction of hovercraft (forward/backward). ### Stop motors - Command: `s` - Description: Immediately stops both motors. ### Fire weapon - Command: `f` - Description: Fires hovercraft's weapon (releases the magnet for 0.75 seconds).