GithubHelp home page GithubHelp logo

Comments (7)

darksidelemm avatar darksidelemm commented on August 22, 2024

The behaviour you are experiencing is 100% the intended behaviour.

Chasemapper is intended to be started up near the start of the chase, and left running until the payloads are recovered. There was never any intention for it to reload old log files (in fact, logging of chase data was only added relatively recently).

I guess the question is - why are you restarting chasemapper in the middle of a balloon chase?

from chasemapper.

g7gpr avatar g7gpr commented on August 22, 2024

Never intentionally, usually a power supply problem. I don't want old telemetry cluttering up the map, as soon as a new chase starts, clean the slate. Sometimes covering the last few km happens on foot, and I lose supply when taking it out of the car.

from chasemapper.

darksidelemm avatar darksidelemm commented on August 22, 2024

If you're leaving chasemapper on continuously, then there is a 'clear payload data' button to wipe old data.

It definitely sounds like you're using chasemapper in ways I didn't really intend it to be used. I intended it to be used in a car, with a good enough receive system to get a position pretty much down to the ground. If I have to go a long distance on foot I'd often bring DFing gear instead of a RPi.

For those last few km, if you don't want to bring a RPi, then maybe something like a TTGO would be more convenient...

from chasemapper.

g7gpr avatar g7gpr commented on August 22, 2024

In open ground definitely I can pick up data whilst the transmitter is on the ground. In the forest, not so easy unless I am very close.

Given that you intended chasemapper to be for car use, and my use case is on car and then on foot with an RPi in a backpack, I think this issue should probably be closed.

from chasemapper.

darksidelemm avatar darksidelemm commented on August 22, 2024

Reading something in from a log file is not a bad idea, it's just that to do so will require a fair bit of coding to:

  • Find the most recent log file.
  • Read in said log file, and buffer up telemetry, or at least the last position.
    The log file form is fairly simple, just lines of JSON, so it should be doable...

from chasemapper.

g7gpr avatar g7gpr commented on August 22, 2024

I'll fork and branch.

from chasemapper.

darksidelemm avatar darksidelemm commented on August 22, 2024

So I would suggest:

  • Create a new submodule in the chasemapper dir, maybe logread.py
  • Add a configuration file option ('reload_last_position') as a boolean (True / False)
  • Make a function which produces a list of log files in the log directory. As these are all timestamped, you should be able to sort these and pick the last one.
  • Make a function which reads in a file, and pumps the 'BALLOON TELEMETRY' data (skip the chase car and the prediction log entries) into handle_new_payload_position (
    def handle_new_payload_position(data):
    )
  • If the reload_last_position value is set, run this on startup.

from chasemapper.

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.