Skip to content
This repository was archived by the owner on Aug 13, 2019. It is now read-only.
This repository was archived by the owner on Aug 13, 2019. It is now read-only.

Write code to actuate the extinguisher #13

Description

@omn0mn0m

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions