Class FixValue - GSTCH/SketchMadeEASY GitHub Wiki
Topic | Specification |
---|---|
Description | Represent a fix value Sketch Made EASY automatically scales the input to the actuators. The value range of the input is required for this. This range is given for most inputs. For FixValue the range can be defined by MinValue and MaxValue. |
Constructor |
FixValue(int Constant) FixValue(int Constant, int MinValue, int MaxValue) Parameter Constant: A fix valueMaxValue: Lower limit of auto mapMinValue: Upper limit of auto map |
Range | Constant… Constant, MinValue…MaxValue |
Const | FixValue::High() FixValue::Low() FixValue::On() FixValue::Off() FixValue::Percent(value) |
Samples | FixValue speed = new FixValue(50); FixValue speed = new FixValue(50, 1, 100); |
Examples |
01-Switch and Lamp 03-Dimming LED with Switch 04-Blinking LED 05‐Motor fix speed, direction‐switch 06‐Motor variable speed, direction‐switch 07‐Motor variable speed, direction‐ and main‐switch 09‐Motor toggles between limit switches, main switch 10‐Main Motor turns between limit switches, second follows 11-Two motors, one turns after the other 16-EncoderMotor and LED controlled by FlySky-RemoteControl 20-Dependent input 21-Else condition |
|