Shooter.cpp
- Committer:
- inst
- Date:
- 2015-10-14
- Revision:
- 1:215e05be641b
- Parent:
- 0:d660b49b71e0
File content as of revision 1:215e05be641b:
#include "Shooter.h" #include "I2CDevice.h" Shooter::Shooter( char address ) : I2CDevice( address ){ mActionType = STOP; mLaunchType = WORKING_8V; } void Shooter::launch(){ setActionType( mLaunchType ); } void Shooter::stop(){ setActionType( STOP ); } int Shooter::write(){ char buf = mActionType; return I2CDevice::write( &buf, 1 ); }