Spin main rotor when receiving data from flight model
This commit is contained in:
parent
ab91016524
commit
2869d390f8
4 changed files with 83 additions and 16 deletions
|
|
@ -50,8 +50,8 @@ public:
|
|||
|
||||
// Called by timer
|
||||
void manager_timeout();
|
||||
// // Called by timer
|
||||
// void model_timeout();
|
||||
// Called by timer
|
||||
void model_timeout();
|
||||
|
||||
// Convert from global coordinates to local position x=north, y=east
|
||||
// taking into account current configuration.
|
||||
|
|
@ -75,6 +75,10 @@ private:
|
|||
void handle_manual_control(mavlink_message_t message);
|
||||
void handle_heartbeat(mavlink_message_t message);
|
||||
|
||||
void receive_model_data();
|
||||
void receive_location(Vector3 location);
|
||||
void receive_rotation(Quaternion rotation);
|
||||
|
||||
Error send_message(mavlink_message_t message);
|
||||
|
||||
// Do not specify specific values, to ensure PARAM_COUNT is correct
|
||||
|
|
@ -107,6 +111,8 @@ private:
|
|||
|
||||
bool manager_connected;
|
||||
Timer *manager_timer;
|
||||
bool model_connected;
|
||||
Timer *model_timer;
|
||||
};
|
||||
|
||||
} // namespace godot
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue