Match¶
-
class
alliancepy.ext.aio.async_match.
Match
(match_key: str, headers: dict)¶ Bases:
object
An asynchronous object containing the details of an FTC match. Instances of this class should not be created directly. Instead, use your
Event
object.- randomization
The randomization of the stones and skystones at the beginning of the match.
- red
An
Alliance
object containing the details of the red alliance of the match.- blue
An
Alliance
object containing the details of the blue alliance of the match.
-
async
participants
()¶ The participants of the match.
- Returns
The team numbers in a list
- Return type
List[int]
-
class
alliancepy.ext.aio.async_match.
Alliance
(alliance: str, match_key: str, details: list, headers: dict)¶ Bases:
object
An object representing a match alliance. Instances of this class should not be created directly. Instead, use your
Match
object.- robot_1
A
Robot
object that represents the first team’s robot.- robot_2
A
Robot
object that represents the second team’s robot.
-
async
min_penalty
()¶ The amount of minor penalties an alliance earned.
- Return type
int
-
async
maj_penalty
()¶ The amount of major penalites an alliance earned.
- Return type
int
-
async
auto_stones
()¶ A list of the stones the alliance stacked in autonomous.
- Return type
List[str]
-
async
foundation
()¶ Whether the alliance repositioned the foundation during autonomous or not.
- Return type
bool
-
async
teleop
()¶ Returns a dict containing integer values. Contains “delivered”, “placed”, and “returned”.
- Return type
dict[str: int]
-
class
alliancepy.ext.aio.async_match.
Robot
(alliance: str, robot_number: int, match_key: str, details: list, headers: dict)¶ Bases:
object
An object containing details about a robot. Instances of this class should not be created directly. Instead, use your
Alliance
object.-
async
parked_skybridge
()¶ Whether the robot parked under the skybridge or not
- Return type
bool
-
async
parked_endgame
()¶ Whether the robot parked at the end of the match or not.
- Return type
bool
-
async
capstone_level
()¶ The level of the capstone at the end of the match.
- Return type
int
-
async
owner
()¶ The team that owns the bot.
- Returns
The team’s team number as in integer
- Return type
int
-
async