Skip to content

Commit

Permalink
Add telemetry_server plugin (#1482)
Browse files Browse the repository at this point in the history
* Add telemetry_server plugin

* Remove GPS origin from telem server

* Add flight_mode support to telem_server

* Fix stabilize typo

* Move actions out of telem_server

* Fix casts, formatting & boot time units

* Fix style

* Update proto - remove RcReceiver

* Add return keyword to publish_status_text

* ...fix style

* Fix casting warnings (you will like static_casts)

Co-authored-by: Seb Horsewell <seb.horsewell@seebyte.com>
  • Loading branch information
bazfp and Seb Horsewell committed Jul 30, 2021
1 parent 5c03390 commit 8ea6d76
Show file tree
Hide file tree
Showing 12 changed files with 38,704 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/core/mavsdk_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ class MavsdkImpl {

double timeout_s() const { return _timeout_s; };

void set_base_mode(uint8_t base_mode);
void set_custom_mode(uint32_t custom_mode);
uint8_t get_base_mode() const;
uint32_t get_custom_mode() const;

MAVLinkAddress own_address{};

private:
Expand Down Expand Up @@ -143,6 +148,9 @@ class MavsdkImpl {
void* _heartbeat_send_cookie{nullptr};

std::atomic<bool> _should_exit = {false};

std::atomic<uint8_t> _base_mode = 0;
std::atomic<uint32_t> _custom_mode = 0;
};

} // namespace mavsdk

Large diffs are not rendered by default.

2,954 changes: 2,954 additions & 0 deletions src/mavsdk_server/src/generated/telemetry_server/telemetry_server.grpc.pb.h

Large diffs are not rendered by default.

15,557 changes: 15,557 additions & 0 deletions src/mavsdk_server/src/generated/telemetry_server/telemetry_server.pb.cc

Large diffs are not rendered by default.

15,578 changes: 15,578 additions & 0 deletions src/mavsdk_server/src/generated/telemetry_server/telemetry_server.pb.h

Large diffs are not rendered by default.

Loading

0 comments on commit 8ea6d76

Please sign in to comment.