Dependents:   OBROT_ALL

Committer:
inst
Date:
Sat Aug 15 12:52:19 2015 +0000
Revision:
0:57ef16865c0b
Child:
1:e541c8ebe96b

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
inst 0:57ef16865c0b 1 #ifndef INCLUDED_COMMAND_H
inst 0:57ef16865c0b 2 #define INCLUDED_COMMAND_H
inst 0:57ef16865c0b 3
inst 0:57ef16865c0b 4 #include "Steering.h"
inst 0:57ef16865c0b 5
inst 0:57ef16865c0b 6 class Command{
inst 0:57ef16865c0b 7 public:
inst 0:57ef16865c0b 8 Command( Steering::ActionType action, float moveDirection_rad, float moveDuty, float roll ) :
inst 0:57ef16865c0b 9 mActionType( action ),
inst 0:57ef16865c0b 10 mMoveDirection_rad( moveDirection_rad ),
inst 0:57ef16865c0b 11 mMoveDuty( moveDuty ),
inst 0:57ef16865c0b 12 mRollCoeff( roll ){
inst 0:57ef16865c0b 13 }
inst 0:57ef16865c0b 14
inst 0:57ef16865c0b 15 Steering::ActionType getActionType(){
inst 0:57ef16865c0b 16 return mActionType;
inst 0:57ef16865c0b 17 }
inst 0:57ef16865c0b 18
inst 0:57ef16865c0b 19 float getMoveDirection_rad(){
inst 0:57ef16865c0b 20 return mMoveDirection_rad;
inst 0:57ef16865c0b 21 }
inst 0:57ef16865c0b 22
inst 0:57ef16865c0b 23 float getMoveDuty(){
inst 0:57ef16865c0b 24 return mMoveDuty;
inst 0:57ef16865c0b 25 }
inst 0:57ef16865c0b 26
inst 0:57ef16865c0b 27 float getRollCoeff(){
inst 0:57ef16865c0b 28 return mRollCoeff;
inst 0:57ef16865c0b 29 }
inst 0:57ef16865c0b 30
inst 0:57ef16865c0b 31 private:
inst 0:57ef16865c0b 32 Steering::ActionType mActionType;
inst 0:57ef16865c0b 33 float mMoveDirection_rad;
inst 0:57ef16865c0b 34 float mMoveDuty;
inst 0:57ef16865c0b 35 float mRollCoeff;
inst 0:57ef16865c0b 36 };
inst 0:57ef16865c0b 37
inst 0:57ef16865c0b 38 #endif