Skip to content

Commit

Permalink
move cyphal related files to autopilot_interface folder
Browse files Browse the repository at this point in the history
  • Loading branch information
PonomarevDA committed Dec 26, 2023
1 parent 6fc322a commit 5e04b7c
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 6 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ else()
)
endif()

# set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_FLAGS "-Wall -Wextra -pedantic -Werror -std=c++17")
set(CYPHAL_REPO_DIR ${CMAKE_CURRENT_LIST_DIR}/Libs/cyphal_application)
set(PLATFORM socketcan)
Expand All @@ -51,7 +50,7 @@ add_executable(${PROJECT_NAME}
src/math.cpp
${SIM_INTERFACE_SRC}
src/autopilot_interface/cyphal_hitl.cpp
src/params.cpp
src/autopilot_interface/params.cpp
${CYPHAL_SRC}
)

Expand Down
4 changes: 4 additions & 0 deletions src/autopilot_interface/cyphal_hitl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ enum class ArmingStatus {
ENGAGED,
};

/**
* @brief Cyphal HITL autopilot interface
* Tested only with PX4 on custom branch, but can be suitable for Ardupilot custom branch as well
*/
class CyphalHitlInterface {
public:
CyphalHitlInterface() :
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Ardupilot HITL
# Ardupilot Gazebo HITL interface

> This interface is not supported at the moment...
## 1. Prerequisites

Expand Down
2 changes: 2 additions & 0 deletions src/simulator_interface/ros_interface/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# UAV HITL Dynamics ROS interface

6 changes: 3 additions & 3 deletions src/simulator_interface/simulator_interface.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// This software is distributed under the terms of the MIT License.
/// Copyright (c) 2023 Dmitry Ponomarev.
/// Author: Dmitry Ponomarev <[email protected]>
// This software is distributed under the terms of the GPL v3 License.
// Copyright (c) 2023 Dmitry Ponomarev.
// Author: Dmitry Ponomarev <[email protected]>

#ifndef AUTOPILOT_HITL_SIMULATOR_INTERFACE_
#define AUTOPILOT_HITL_SIMULATOR_INTERFACE_
Expand Down

0 comments on commit 5e04b7c

Please sign in to comment.