NHK2021_ikarashiSolenoidValve
Dependents: NHK2021_ikarashiSV_code NHK2021_ikarashiSV_code_withservo 2021NHK_B_syudo
Diff: ikarashiSV.cpp
- Revision:
- 3:1fc2008f3a07
- Parent:
- 1:696f7c0ab1bd
- Child:
- 4:6d421db6e727
--- a/ikarashiSV.cpp Fri Oct 15 07:58:20 2021 +0000 +++ b/ikarashiSV.cpp Mon Oct 18 08:42:56 2021 +0000 @@ -17,24 +17,24 @@ switch(_state) { case 1: //下だけ上がる - port_a = 1; - port_b = 0; + port_a = 0; + port_b = 1; solenoid_status = 1; break; case 2: //投げる - port_c = 1; - port_d = 0; + port_c = 0; + port_d = 1; solenoid_status = 2; break; case 0: //戻る - port_c = 0; - port_d = 1; + port_c = 1; + port_d = 0; wait(0.3); - port_a = 0; - port_b = 1; + port_a = 1; + port_b = 0; solenoid_status = 0; break; }