blob: 5abb488dab9721aeaa35f9beda341ead135d2086 [file] [log] [blame]
package bot3.control_loops;
import "aos/common/controls/control_loops.q";
queue_group Rollers {
implements aos.control_loops.ControlLoop;
message Goal {
// -1 = back intake, 1 = front intake, all else = stationary.
int16_t intake;
// -1 = backwards, 1 = forwards, all else = stationary.
int16_t low_spit;
// Whether we want the human player load function.
bool human_player;
};
message Position {};
message Output {
// Positive voltage = intaking, Negative = spitting.
double front_intake_voltage;
double back_intake_voltage;
// Voltage for the low goal rollers.
// Positive voltage = ball towards back, Negative = ball towards front.
double low_goal_voltage;
// Whether the front and back intake pistons are extended.
bool front_extended;
bool back_extended;
};
message Status {};
queue Goal goal;
queue Position position;
queue Output output;
queue Status status;
};
queue_group Rollers rollers;