Git Product home page Git Product logo

Comments (5)

TimEvWw avatar TimEvWw commented on July 18, 2024

#13

There was the idea to send one command to get a status and it keeps sending
the status for x minutes.

The resource cost to get the status is practically zero. What the resource
cost is for receiving/sending I haven't checked.

On Thu, Nov 27, 2014 at 10:41 AM, Rory Aronson [email protected]
wrote:

I was wondering if the frequency that the pi checks the schedule could be
increased? Is there a significant cost in doing so?

Increasing the check rate would allow the manual control page to feel more
'real-time' than it currently is - a major 'wow' factor I think most people
will like especially when they are using the widget to show off their bot
to their friends.


Reply to this email directly or view it on GitHub
#43.

from farmbot_os.

roryaronson avatar roryaronson commented on July 18, 2024

I meant when I send the bot a command it gets put in the schedule nearly instantly. The pi seems to check the database locally every 1 second or 1/2 second. Could that frequency be increased so it checks it every 1/10 of a second in order to decrease the lag of manual control?

from farmbot_os.

TimEvWw avatar TimEvWw commented on July 18, 2024

Ah, there was a bug in that part due to the emergency stop code that caused
a delay. That's changed. The frequency now should be 0.1 seconds in the
next push. The limiting factor is then the database (sqlite) speed.

On Thu, Nov 27, 2014 at 10:56 AM, Rory Aronson [email protected]
wrote:

I meant when I send the bot a command it gets put in the schedule nearly
instantly. The pi seems to check the database locally every 1 second or
1/2 second. Could that frequency be increased so it checks it every 1/10 of
a second in order to decrease the lag of manual control?


Reply to this email directly or view it on GitHub
#43 (comment)
.

from farmbot_os.

RickCarlino avatar RickCarlino commented on July 18, 2024

Oh!! Is that what was going on?

I was working on Farmbot last night for the read_status command and was getting ~4 second delays from the time I fetched to the time it was displayed the message.

I thought maybe MeshBlu was under heavy load. Is it on our end?

from farmbot_os.

TimEvWw avatar TimEvWw commented on July 18, 2024

No, the read status is something different. The status command is handled
before it reaches the command scheduling. As far as I can deduce it: the
handling of the status reading is hanging (indefinitely) on a certain
variable. Because it's hanging instead of raising an error, you don't see
it. And because it's an event, the rest keeps running instead of blocking
everything. Will fix that soon.

On Thu, Nov 27, 2014 at 3:32 PM, Rick Carlino [email protected]
wrote:

Oh!! Is that what was going on?

I was working on Farmbot last night for the read_status command and was
getting ~4 second delays from the time I fetched to the time it was
displayed the message.

I thought maybe MeshBlu was under heavy load. Is it on our end?


Reply to this email directly or view it on GitHub
#43 (comment)
.

from farmbot_os.

Related Issues (20)

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.