Skip to content

File SimSatClient.hpp

File List > flight_segment > orion > Orion > Utils > SimSatClient.hpp

Go to the documentation of this file

#ifndef ORION_SIMSAT_CLIENT_HPP
#define ORION_SIMSAT_CLIENT_HPP

#include <cstddef>
#include <cstdint>

namespace Orion {

class SimSatClient {
  public:
    static bool fetchPosition(double& lat, double& lon, double& alt);

    static bool fetchMapboxImage(uint8_t* rgbOut, uint32_t outWidth, uint32_t outHeight);

  private:
    static const char* getBaseUrl();

    static size_t writeCallback(void* contents, size_t size, size_t nmemb, void* userp);

    static size_t headerCallback(char* buffer, size_t size, size_t nitems, void* userp);
};

}  // namespace Orion

#endif  // ORION_SIMSAT_CLIENT_HPP