Match¶
-
class
alliancepy.match.
Match
(match_key: str, headers: dict)¶ Bases:
object
An 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.
-
property
participants
¶ The participants of the match.
- Returns
The team numbers in a list
- Return type
List[int]
-
class
alliancepy.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.
-
property
min_penalty
¶ The amount of minor penalties an alliance earned.
- Return type
int
-
property
maj_penalty
¶ The amount of major penalites an alliance earned.
- Return type
int
-
property
auto_stones
¶ A list of the stones the alliance stacked in autonomous.
- Return type
List[str]
-
property
foundation
¶ Whether the alliance repositioned the foundation suring autonomous or not.
- Return type
bool
-
property
teleop
¶ Returns a dict containing integer values. Contains “delivered”, “placed”, and “returned”.
- Return type
dict[str: int]
-
class
alliancepy.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.-
property
parked_skybridge
¶ Whether the robot parked under the skybridge or not
- Return type
bool
-
property
parked_endgame
¶ Whether the robot parked at the end of the match or not.
- Return type
bool
-
property
capstone_level
¶ The level of the capstone at the end of the match.
- Return type
int
-
property
owner
¶ The team that owns the bot.
- Returns
The team’s team number as an integer
- Return type
int
-
property