Code Monkey home page Code Monkey logo

mybot's People

Contributors

marcusrugger avatar

Watchers

 avatar  avatar

mybot's Issues

Add timer event subject

The scheduler needs to be able to run a task after a specified period of time has elapsed. Using a timer subject, which can be scheduled should do the job.

Uses included being able to run the motors for a specific period of time, support blinking LEDs, or timeout on waiting for input.

Add logging

The problem with using simple Serial for output logging information is they have to be commented in and out based on if they're needed.

Need a way to keep logging statements in the code and turn them on and off at run time. Some sort of level support would be nice too.

Refactor factory, builder, and director

Upon closer evaluation, I've decided I want the builder and factory classes to be separate. The factory should be a true abstract factory and the builder should use the factory. As they are, they're kind of confused together.

Add speed control

Need to be able to have some control over the speed of the motors. I think just a few values will suffice:

SPEED_FAST
SPEED_MEDIUM
SPEED_SLOW

Bug in scheduler when unscheduling tasks

There's a bug in the scheduler when the currently running task unschedules itself. Unschedule will remove the task, but the next task will be skipped because 'i' in run() will be incremented.

The correct fix would be to use a true list class with iterators.

Command queue should use latch

The command queue should use a latching mechanism for determining when it's OK to execute the next command. That way, it can latch on anything, besides just elapsed time.

class Latch
{
public:
    bool isLatched(void) = 0;
};

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.