Formations operations
Last updated
Last updated
Function | Description |
---|---|
Swarm.setFormation2D(
shape, N, L
)
Parameters:
shape: str
Shape of the desired formation, based on a list of standard geometries
N: int
Defines the number of clovers in the formation
L: int or float
Dimension of the formation side (change for each geometry)
Result: Defines the coordinates of a 2D simple geometry for the number of clovers in operation, the geometries are:
Line
Circle
Empty square
Full square
Triangle
More details of the function and some code snippets are in the Formations section.
Swarm.setFormation3D(
shape, N, L
)
Parameters:
shape: str
Shape of the desired formation, based on a list of standard geometries
N: int
Defines the number of clovers in the formation
L: int or float
Dimension of the formation side (change for each geometry)
Result: Has a similar behavior that the setFormation2D, but with 3D geometries, which are:
Cube
Pyramid
Sphere
More details of the function and some code snippets are also in the Formations section.
Swarm.setAlphabet(user_input, N)
Parameters:
user_input: str
Shape of the desired formation, based on a list of standard geometries
N: int
Defines the number of clovers in the formation
Result:
Creates letters and words based on the user_input
and defines the drones' coordinates. The details about this function are in the Alphabet section.
In order to keep the quality of the patterns, to apply the alphabet formations a minimum amount of drones will be demanded and the code will inform it while executing
Sets a 2D arrangement from a list of already developed basic formations
Sets a 3D arrangement from a list of already developed basic formations
Create words or letters with the drones