Thunderbots Project
Loading...
Searching...
No Matches
Chicker Class Reference

#include <chicker.h>

Public Member Functions

 Chicker ()
 

Static Public Member Functions

static void kick (uint32_t kick_pulse_width)
 
static void chip (uint32_t chip_pulse_width)
 
static void autokick (uint32_t kick_pulse_width)
 
static void autochip (uint32_t chip_pulse_width)
 
static bool getBreakBeamTripped ()
 

Detailed Description

Represents the chicker on the power board

Constructor & Destructor Documentation

◆ Chicker()

Chicker ( )

Creates a Chicker setting up relevant pins and attaching interrupts

Member Function Documentation

◆ autokick()

void autokick ( uint32_t  kick_pulse_width)
static

Attaches an interrupt on the BREAK_BEAM_PIN to kick/chip. kick/chip will only be triggered once

◆ getBreakBeamTripped()

bool getBreakBeamTripped ( )
static

Get the current status of whether the break beam was tripped or not This is reset before every kick/chip

Returns
whether the break beam has been tripped for the current action

◆ kick()

void kick ( uint32_t  kick_pulse_width)
static

Sets the action of the chicker. Arguments can not be passed to isr's so these need to be set before calling kick/chip


The documentation for this class was generated from the following files: