mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-03 12:50:36 +08:00
Converted cxx to cpp
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
committed by
Lorenz Meier
parent
b313bfdaa9
commit
049c769293
@@ -33,10 +33,11 @@
|
||||
|
||||
/**
|
||||
* @file protocol_splitter.cpp
|
||||
* NuttX Driver to split mavlink 2 and another protocol on a serial port.
|
||||
* NuttX Driver to split mavlink 2 and another RTPS on a serial port.
|
||||
* Makes sure the two protocols can be read & written simultanously by 2 processes.
|
||||
* It will create two devices:
|
||||
* /dev/mavlink
|
||||
* /dev/mavlink
|
||||
* /dev/rtps
|
||||
*/
|
||||
|
||||
#include <drivers/device/device.h>
|
||||
|
||||
@@ -129,22 +129,22 @@ src/modules/micrortps_bridge/micrortps_agent
|
||||
├── idl
|
||||
│ ├── sensor_baro_.idl
|
||||
│ └── sensor_combined_.idl
|
||||
├── microRTPS_agent.cxx
|
||||
├── microRTPS_transport.cxx
|
||||
├── microRTPS_agent.cpp
|
||||
├── microRTPS_transport.cpp
|
||||
├── microRTPS_transport.h
|
||||
├── RtpsTopics.cxx
|
||||
├── RtpsTopics.cpp
|
||||
├── RtpsTopics.h
|
||||
├── sensor_baro_.cxx
|
||||
├── sensor_baro_.cpp
|
||||
├── sensor_baro_.h
|
||||
├── sensor_baro_Publisher.cxx
|
||||
├── sensor_baro_Publisher.cpp
|
||||
├── sensor_baro_Publisher.h
|
||||
├── sensor_baro_PubSubTypes.cxx
|
||||
├── sensor_baro_PubSubTypes.cpp
|
||||
├── sensor_baro_PubSubTypes.h
|
||||
├── sensor_combined_.cxx
|
||||
├── sensor_combined_.cpp
|
||||
├── sensor_combined_.h
|
||||
├── sensor_combined_PubSubTypes.cxx
|
||||
├── sensor_combined_PubSubTypes.cpp
|
||||
├── sensor_combined_PubSubTypes.h
|
||||
├── sensor_combined_Subscriber.cxx
|
||||
├── sensor_combined_Subscriber.cpp
|
||||
└── sensor_combined_Subscriber.h
|
||||
2 directories, 20 files
|
||||
```
|
||||
@@ -154,7 +154,7 @@ $ tree src/modules/micrortps_bridge/micrortps_client
|
||||
src/modules/micrortps_bridge/micrortps_client
|
||||
├── CMakeLists.txt
|
||||
├── microRTPS_client.cpp
|
||||
├── microRTPS_transport.cxx
|
||||
├── microRTPS_transport.cpp
|
||||
└── microRTPS_transport.h
|
||||
0 directories, 4 files
|
||||
```
|
||||
|
||||
@@ -49,17 +49,17 @@ if(NOT GENERATE_RTPS_BRIDGE MATCHES "off")
|
||||
endforeach()
|
||||
|
||||
foreach(topic ${config_rtps_send_topics})
|
||||
list(APPEND topic_bridge_files_out ${msg_out_path}/${topic}_Publisher.cxx)
|
||||
list(APPEND topic_bridge_files_out ${msg_out_path}/${topic}_Publisher.cpp)
|
||||
list(APPEND topic_bridge_files_out ${msg_out_path}/${topic}_Publisher.h)
|
||||
endforeach()
|
||||
|
||||
foreach(topic ${config_rtps_receive_topics})
|
||||
list(APPEND topic_bridge_files_out ${msg_out_path}/${topic}_Subscriber.cxx)
|
||||
list(APPEND topic_bridge_files_out ${msg_out_path}/${topic}_Subscriber.cpp)
|
||||
list(APPEND topic_bridge_files_out ${msg_out_path}/${topic}_Subscriber.h)
|
||||
endforeach()
|
||||
|
||||
if (NOT "${config_rtps_send_topics}" STREQUAL "" OR NOT "${config_rtps_receive_topics}" STREQUAL "")
|
||||
set(topic_bridge_files_out microRTPS_client.cpp microRTPS_transport.cxx microRTPS_transport.h)
|
||||
set(topic_bridge_files_out microRTPS_client.cpp microRTPS_transport.cpp microRTPS_transport.h)
|
||||
|
||||
set(send_topic_files_opt)
|
||||
if (NOT "${send_topic_files}" STREQUAL "")
|
||||
@@ -93,7 +93,7 @@ px4_add_module(
|
||||
MAIN micrortps_client
|
||||
STACK_MAIN 4096
|
||||
SRCS
|
||||
microRTPS_transport.cxx
|
||||
microRTPS_transport.cpp
|
||||
microRTPS_client.cpp
|
||||
DEPENDS
|
||||
platforms__common
|
||||
|
||||
Reference in New Issue
Block a user