Skip to content

Option for duration #5

@naaitsab

Description

@naaitsab

I experimented a bit with the "type 1" collar. It seems to support longer/continuous vibration and shocks. Tested to 7 seconds.

I've hacked together a very crude method to let it trigger longer. If you call the function in a loop. With the loop count double the amount of seconds it seems to work about right with a delay of 250 in between.

  int timestofire = sec * 2;
  for (int i=0; i<timestofire; i++) {
    process_message(commandC);
    delay(250);
   }

But after a few seconds the ESP restarts so I guess it overloads the system doing it like this. Any idea how to implement this cleanly inside of the collarTX libary?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions