Component: Linear Actuator (Mechatronics)
From Flowcode Help
Jump to navigationJump to search| Author | Matrix TSL |
| Version | 1.0 |
| Category | Mechatronics |
Contents
Linear Actuator component
Creates a linear actuator that can be used with the various motor components via a coupling or gearbox.
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Downloadable macro reference
| CheckLimits | |
| Checks to see if either limit switch is active. Returns 1 if min switch is active, 2 if max switch is active, 3 if both switches are active else returns 0. | |
| Return | |
| ReadMic | |
| Reads the current audio signal level from the on-board microphone. | |
| [[File:]] - | Return |
| ReadSwitch | |
| Reads the value of one of the switches from the front of the Formula Flowcode. | |
| Switch | |
| Return | |
| SpinLeft | |
| Spins the formula flowcode on the spot in an anticlockwise direction as seen from above. | |
| Power | |
| Return | |
| Forward | |
| Drives both motors of the formula flowcode forwards with the power specified. | |
| Power | |
| Return | |
| ReadLineSensor | |
| Returns the digital value from the line sensor specified. | |
| Sensor | |
| Return | |
| SpinRight | |
| Spins the formula flowcode on the spot in a clockwise direction as seen from above. | |
| Power | |
| Return | |
| CheckIR | |
| Checks to see if a IR sensor is within the master threshold distance. | |
| Sensor | |
| Return | |
| ReadIRSensor | |
| Reads the analogue value from the specified IR distance sensor. | |
| Sensor | |
| Return | |
| SetMotors | |
| Sets the speed and direction of the Formula Flowcode motors. | |
| [[File:]] - | Left_Power |
| Valid Range = -255 to 255 | |
| [[File:]] - | Right_Power |
| Valid Range = -255 to 255 | |
| Return | |
| Reverse | |
| Drives both motors of the formula flowcode backwards with the power specified. | |
| Power | |
| Return | |
| WaitForSwitch | |
| Waits for the specified switch to be pressed. | |
| Switch | |
| Return | |
| ReadLDR | |
| Reads the current audio signal level from the on-board light sensor. | |
| [[File:]] - | Return |
| WriteLEDs | |
| Allows control of all 8-LEDs on the front of the Formula Flowcode. | |
| LED_Byte | |
| Return | |
| Initialise | |
| Starts up the formula flowcode PWM for motor control and performs the wait for button press | |
| Return | |