2019-12-05 11:50:58 +01:00
|
|
|
#pragma once
|
|
|
|
|
2022-07-04 15:31:01 +02:00
|
|
|
#include "behaviour_control/complementary_filter.h"
|
|
|
|
#include "motors_movement/drivecontroller.h"
|
2020-02-29 22:10:53 +01:00
|
|
|
#include "sensors/sensors.h"
|
|
|
|
#include "strategy_roles/game.h"
|
2019-12-05 11:50:58 +01:00
|
|
|
|
2021-04-19 19:14:51 +02:00
|
|
|
#define STRIKER_ATTACK_DISTANCE 110
|
|
|
|
#define STRIKER_TILT_STOP_DISTANCE 140
|
2022-07-04 15:31:01 +02:00
|
|
|
#define STRIKER_PLUSANG 35
|
2022-06-28 10:41:05 +02:00
|
|
|
#define STRIKER_PLUSANG_VISIONCONE 7
|
|
|
|
#define STRIKER_VEL MAX_VEL
|
|
|
|
|
2022-07-04 15:31:01 +02:00
|
|
|
class Striker : public Game
|
|
|
|
{
|
2019-12-05 12:53:14 +01:00
|
|
|
|
2022-07-04 15:31:01 +02:00
|
|
|
public:
|
|
|
|
Striker();
|
|
|
|
Striker(LineSystem *ls, PositionSystem *ps);
|
2019-12-05 11:50:58 +01:00
|
|
|
|
2022-07-04 15:31:01 +02:00
|
|
|
private:
|
|
|
|
void realPlay() override;
|
|
|
|
void init() override;
|
|
|
|
void striker();
|
|
|
|
int tilt();
|
|
|
|
float ballTilt();
|
2019-12-09 19:08:05 +01:00
|
|
|
|
2022-07-04 15:31:01 +02:00
|
|
|
int atk_speed, atk_direction = 0, atk_tilt, stato = 0, plusang_flag = 0;
|
|
|
|
bool flag = false;
|
2019-12-09 19:08:05 +01:00
|
|
|
|
2022-07-04 15:31:01 +02:00
|
|
|
ComplementaryFilter *ball_filter;
|
2019-12-05 11:50:58 +01:00
|
|
|
};
|