タコ 腕

Dependencies:   2017NHKpin_config FEP ikarashiMDC

Fork of NHK2017_octopus2 by NagaokaRoboticsClub_mbedTeam

bot/bot.h

Committer:
number_key
Date:
2017-11-23
Revision:
54:857390145ac4
Parent:
52:320f910ca6ca
Child:
55:ccf2ac8f6f32

File content as of revision 54:857390145ac4:

/**
* @file bot.h
* @brief ロボットのクラス
*/
#ifndef BOT_H
#define BOT_H

#include "mbed.h"
#include "pin_config.h"
#include "controller.h"
#include "tentacle_unit.h"
#include "elevator.h"
#include "sword_unit.h"
#include "def.h"

/**
* @brief ロボットのクラス
*/
class Bot
{
public :
    /**
    * @brief コンストラクタ
    */
    Bot();

    /**
    * @brief センサなどの値を更新
    */
    void confirmPad();

    /**
    * @brief 機構部の制御
    */
    void controllMech();

    void checkConnection();

    void checkReceiveData();

private :
    Controller pad;
    Serial RS485;
    DigitalOut RS485Controller;
    DigitalOut powerSwitch;
    Tentacle tentacle;
    Elevator nishijoSword;
    Sword nishijo;
    bool receiveSuccessed;
    Serial debugSerial;
};

#endif//BOT_H