Jump to content

Component: Sheep Pen (Scenarios)

From Flowcode Help
Revision as of 14:13, 20 January 2023 by Wiki bot (talk | contribs)
Author Matrix TSL
Version 1.0
Category Scenarios


Sheep Pen component

A simple sheep pen simulation with two gates and two sensors. Allows for simple logical control to try and move all the sheep from one pen to another.

Component Source Code

Please click here for the component source code: FC_Comp_Source_SheepPen.fcfx

Detailed description

No detailed description exists yet for this component

Examples

There is a detailed walk through of the scenario detailed at the link below to go with this component.

Sheep Pen Scenario

Macro reference

ReadSensor
Checks to see if an object is on the Sensor. Returns 0 if nothing is on the Sensor, Returns 1 if an object is on the Sensor. 
- BOOL Return


ControlGateB
Allows gate B to be opened and closed. 
- BOOL State
0 = Closed, 1 = Open 
- VOID Return


ControlGateA
Allows gate A to be opened and closed. 
- BOOL State
0 = Closed, 1 = Open 
- VOID Return



Property reference

Properties
Inactive Sensor
Specifies the colour of the sensor's indicator when no sheep are present. 
Active Sensor
Specifies the colour of the sensor's indicator when sheep are present. 
Num Objects
Specifies the number of objects active in the simulation.