SPQR-Team-2019-REVAMPED/include/strategy_roles/striker.h

33 lines
710 B
C
Raw Normal View History

#pragma once
#include "sensors/data_source_camera_vshapedmirror.h"
#include "sensors/sensors.h"
#include "strategy_roles/game.h"
2021-04-19 19:14:51 +02:00
#define STRIKER_ATTACK_DISTANCE 110
#define STRIKER_TILT_STOP_DISTANCE 140
2022-06-09 10:03:48 +02:00
#define STRIKER_PLUSANG 70
#define STRIKER_PLUSANG_VISIONCONE 0
2019-12-05 12:53:14 +01:00
class Striker : public Game{
public:
Striker();
Striker(LineSystem* ls, PositionSystem* ps);
2019-12-26 17:44:58 +01:00
private:
void realPlay() override;
2019-12-26 17:44:58 +01:00
void init() override;
void striker();
int tilt();
float ballTilt();
int atk_speed, atk_direction;
float atk_tilt, ball_tilt;
2019-12-26 17:44:58 +01:00
2022-06-09 10:03:48 +02:00
int ball_angle_filter;
ComplementaryFilter* ball_filter;
2021-04-19 19:14:51 +02:00
bool gotta_tilt;
};