GW-Robotics / 2017-Firefighter

2017 GW Robotics code for the Trinity College Fire Fighting Robot competition
MIT License
2 stars 2 forks source link

Write code to actuate the extinguisher #13

Open omn0mn0m opened 7 years ago

omn0mn0m commented 7 years ago

Pseudocode for this:

For values between 90 and 180:
     If flame detected:
          Set foundFlame to true
          Break out of for loop
     Move server up by for-loop value

If no flame found:
     Move servo to 90
     For values between 90 and 0:
     If flame detected:
          Set foundFlame to true
          Break out of for loop
     Move servo down by for-loop value
Else:
     Actuate the pump
     While foundFlame is true: do nothing
     Disable pump
Adrian-Haber commented 7 years ago

@jwalrusisawesome do we have a design for the extinguisher so that we can write some psudocode?

omn0mn0m commented 7 years ago

@Adrian-Haber In one of the closed issue Jeremey wrote some pseudo code.

omn0mn0m commented 7 years ago

Written in Arduino, needs Python implementation