NHK2021_ikarashiSolenoidValve
Dependents: NHK2021_ikarashiSV_code NHK2021_ikarashiSV_code_withservo 2021NHK_B_syudo
Diff: ikarashiSV.cpp
- Revision:
- 4:6d421db6e727
- Parent:
- 3:1fc2008f3a07
- Child:
- 5:1ef248a66820
--- a/ikarashiSV.cpp Mon Oct 18 08:42:56 2021 +0000 +++ b/ikarashiSV.cpp Thu Oct 21 16:06:55 2021 +0000 @@ -16,27 +16,27 @@ { switch(_state) { case 1: - //下だけ上がる + //投げる port_a = 0; port_b = 1; - solenoid_status = 1; - break; - case 2: - //投げる port_c = 0; port_d = 1; solenoid_status = 2; break; - case 0: + case 2: //戻る port_c = 1; port_d = 0; - wait(0.3); + //wait(0.3); port_a = 1; port_b = 0; solenoid_status = 0; break; + case 0://禅開放 + port_c = 0; + port_d = 1; + break; } }