Revision:
1:215e05be641b
Parent:
0:d660b49b71e0
--- a/Shooter.cpp	Fri Aug 21 04:52:35 2015 +0000
+++ b/Shooter.cpp	Wed Oct 14 03:52:28 2015 +0000
@@ -2,17 +2,19 @@
 #include "I2CDevice.h"
 
 Shooter::Shooter( char address ) : I2CDevice( address ){
-    
+    mActionType = STOP;
+    mLaunchType = WORKING_8V;
 }
 
-void Shooter::write(){
-    
+void Shooter::launch(){
+    setActionType( mLaunchType );
 }
 
 void Shooter::stop(){
-    
+    setActionType( STOP );
 }
 
-void Shooter::launch(){
-    
+int Shooter::write(){
+    char buf = mActionType;
+    return I2CDevice::write( &buf, 1 );
 }