clean up codes

This commit is contained in:
AiYangSky 2023-11-28 11:54:19 +08:00
parent 36fc8eefef
commit 469ba77fe6
33 changed files with 58 additions and 134 deletions

View File

@ -1,12 +1,4 @@
#!/bin/bash -e #!/bin/bash -e
###
# @Description:
# @Author: L LC @amov
# @Date: 2023-11-21 16:10:38
# @LastEditors: L LC @amov
# @LastEditTime: 2023-11-28 11:27:13
# @FilePath: /SpireCV/build_on_x86_cuda.sh
###
rm -rf build rm -rf build
mkdir build mkdir build

View File

@ -3,8 +3,8 @@
* @Author: L LC @amov * @Author: L LC @amov
* @Date: 2022-10-27 18:10:06 * @Date: 2022-10-27 18:10:06
* @LastEditors: L LC @amov * @LastEditors: L LC @amov
* @LastEditTime: 2023-08-16 21:53:43 * @LastEditTime: 2023-11-28 11:47:48
* @FilePath: /gimbal-sdk-multi-platform/src/AT10/AT10_gimbal_crc32.h * @FilePath: /SpireCV/gimbal_ctrl/driver/src/AT10/AT10_gimbal_crc32.h
*/ */
#ifndef AT10_GIMBAL_CRC32_H #ifndef AT10_GIMBAL_CRC32_H
#define AT10_GIMBAL_CRC32_H #define AT10_GIMBAL_CRC32_H

View File

@ -3,8 +3,8 @@
* @Author: L LC @amov * @Author: L LC @amov
* @Date: 2022-10-27 18:10:06 * @Date: 2022-10-27 18:10:06
* @LastEditors: L LC @amov * @LastEditors: L LC @amov
* @LastEditTime: 2023-08-25 19:39:56 * @LastEditTime: 2023-11-28 11:47:53
* @FilePath: /gimbal-sdk-multi-platform/src/AT10/AT10_gimbal_driver.cpp * @FilePath: /SpireCV/gimbal_ctrl/driver/src/AT10/AT10_gimbal_driver.cpp
*/ */
#include "AT10_gimbal_driver.h" #include "AT10_gimbal_driver.h"
#include "AT10_gimbal_crc32.h" #include "AT10_gimbal_crc32.h"

View File

@ -3,8 +3,8 @@
* @Author: L LC @amov * @Author: L LC @amov
* @Date: 2022-10-28 12:24:21 * @Date: 2022-10-28 12:24:21
* @LastEditors: L LC @amov * @LastEditors: L LC @amov
* @LastEditTime: 2023-08-25 19:28:55 * @LastEditTime: 2023-11-28 11:47:58
* @FilePath: /gimbal-sdk-multi-platform/src/AT10/AT10_gimbal_driver.h * @FilePath: /SpireCV/gimbal_ctrl/driver/src/AT10/AT10_gimbal_driver.h
*/ */
#include "../amov_gimbal.h" #include "../amov_gimbal.h"
#include "../amov_gimbal_private.h" #include "../amov_gimbal_private.h"

View File

@ -3,8 +3,8 @@
* @Author: L LC @amov * @Author: L LC @amov
* @Date: 2023-03-02 10:00:52 * @Date: 2023-03-02 10:00:52
* @LastEditors: L LC @amov * @LastEditors: L LC @amov
* @LastEditTime: 2023-09-07 10:56:15 * @LastEditTime: 2023-11-28 11:48:03
* @FilePath: /gimbal-sdk-multi-platform/src/AT10/AT10_gimbal_funtion.cpp * @FilePath: /SpireCV/gimbal_ctrl/driver/src/AT10/AT10_gimbal_funtion.cpp
*/ */
#include "AT10_gimbal_driver.h" #include "AT10_gimbal_driver.h"
#include "AT10_gimbal_crc32.h" #include "AT10_gimbal_crc32.h"

View File

@ -3,8 +3,8 @@
* @Author: L LC @amov * @Author: L LC @amov
* @Date: 2022-10-27 18:10:07 * @Date: 2022-10-27 18:10:07
* @LastEditors: L LC @amov * @LastEditors: L LC @amov
* @LastEditTime: 2023-08-25 19:32:59 * @LastEditTime: 2023-11-28 11:48:08
* @FilePath: /gimbal-sdk-multi-platform/src/AT10/AT10_gimbal_struct.h * @FilePath: /SpireCV/gimbal_ctrl/driver/src/AT10/AT10_gimbal_struct.h
*/ */
#ifndef AT10_GIMBAL_STRUCT_H #ifndef AT10_GIMBAL_STRUCT_H
#define AT10_GIMBAL_STRUCT_H #define AT10_GIMBAL_STRUCT_H

View File

@ -1,37 +0,0 @@
add_library(AMOV_Gimbal ${LIB_FLAG})
SET(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -Wall -g2 -ggdb -fPIC")
SET(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -Wall -fPIC")
add_definitions(
-DMAX_QUEUE_SIZE=100
)
add_subdirectory(FIFO)
########## add types of gimbal ##############
add_subdirectory(G1)
add_subdirectory(Q10f)
add_subdirectory(AT10)
add_subdirectory(GX40)
file(GLOB LIB_FILES ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
target_sources(AMOV_Gimbal
PRIVATE
${LIB_FILES}
)
target_link_libraries(AMOV_Gimbal
PRIVATE
Gimabl_G1
Gimabl_G2
Gimabl_Q10f
Gimabl_AT10
Gimabl_GX40
)
target_include_directories(AMOV_Gimbal
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}
)

View File

@ -1,13 +0,0 @@
add_library(FIFO)
file(GLOB LIB_FILES ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
target_sources(FIFO
PRIVATE
${LIB_FILES}
)
target_include_directories(FIFO
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}
)

View File

@ -3,8 +3,8 @@
* @Author : Aiyangsky * @Author : Aiyangsky
* @Date : 2022-08-26 21:42:10 * @Date : 2022-08-26 21:42:10
* @LastEditors: L LC @amov * @LastEditors: L LC @amov
* @LastEditTime: 2023-07-21 16:10:16 * @LastEditTime: 2023-11-28 11:47:34
* @FilePath: /gimbal-sdk-multi-platform/src/FIFO/Ring_Fifo.cpp * @FilePath: /SpireCV/gimbal_ctrl/driver/src/FIFO/Ring_Fifo.cpp
*/ */
#include <string.h> #include <string.h>

View File

@ -3,8 +3,8 @@
* @Author : Aiyangsky * @Author : Aiyangsky
* @Date : 2022-08-26 21:42:02 * @Date : 2022-08-26 21:42:02
* @LastEditors: L LC @amov * @LastEditors: L LC @amov
* @LastEditTime: 2023-08-16 21:22:46 * @LastEditTime: 2023-11-28 11:47:39
* @FilePath: /gimbal-sdk-multi-platform/src/FIFO/Ring_Fifo.h * @FilePath: /SpireCV/gimbal_ctrl/driver/src/FIFO/Ring_Fifo.h
*/ */
#ifndef RING_FIFO_H #ifndef RING_FIFO_H

View File

@ -3,8 +3,8 @@
* @Author: L LC @amov * @Author: L LC @amov
* @Date: 2022-10-27 18:10:06 * @Date: 2022-10-27 18:10:06
* @LastEditors: L LC @amov * @LastEditors: L LC @amov
* @LastEditTime: 2022-10-28 14:10:02 * @LastEditTime: 2023-11-28 11:47:02
* @FilePath: \amov-gimbal-sdk\src\G1\g1_gimbal_crc32.h * @FilePath: /SpireCV/gimbal_ctrl/driver/src/G1/g1_gimbal_crc32.h
*/ */
#ifndef G1_GIMBAL_CRC32_H #ifndef G1_GIMBAL_CRC32_H
#define G1_GIMBAL_CRC32_H #define G1_GIMBAL_CRC32_H

View File

@ -3,8 +3,8 @@
* @Author: L LC @amov * @Author: L LC @amov
* @Date: 2022-10-27 18:10:06 * @Date: 2022-10-27 18:10:06
* @LastEditors: L LC @amov * @LastEditors: L LC @amov
* @LastEditTime: 2023-09-07 11:01:25 * @LastEditTime: 2023-11-28 11:47:07
* @FilePath: /gimbal-sdk-multi-platform/src/G1/g1_gimbal_driver.cpp * @FilePath: /SpireCV/gimbal_ctrl/driver/src/G1/g1_gimbal_driver.cpp
*/ */
#include "g1_gimbal_driver.h" #include "g1_gimbal_driver.h"
#include "g1_gimbal_crc32.h" #include "g1_gimbal_crc32.h"

View File

@ -3,8 +3,8 @@
* @Author: L LC @amov * @Author: L LC @amov
* @Date: 2022-10-28 12:24:21 * @Date: 2022-10-28 12:24:21
* @LastEditors: L LC @amov * @LastEditors: L LC @amov
* @LastEditTime: 2023-09-07 02:31:19 * @LastEditTime: 2023-11-28 11:47:12
* @FilePath: /gimbal-sdk-multi-platform/src/G1/g1_gimbal_driver.h * @FilePath: /SpireCV/gimbal_ctrl/driver/src/G1/g1_gimbal_driver.h
*/ */
#include "../amov_gimbal.h" #include "../amov_gimbal.h"
#include "../amov_gimbal_private.h" #include "../amov_gimbal_private.h"

View File

@ -3,8 +3,8 @@
* @Author: L LC @amov * @Author: L LC @amov
* @Date: 2023-03-02 10:00:52 * @Date: 2023-03-02 10:00:52
* @LastEditors: L LC @amov * @LastEditors: L LC @amov
* @LastEditTime: 2023-09-07 10:50:30 * @LastEditTime: 2023-11-28 11:47:19
* @FilePath: /gimbal-sdk-multi-platform/src/G1/g1_gimbal_funtion.cpp * @FilePath: /SpireCV/gimbal_ctrl/driver/src/G1/g1_gimbal_funtion.cpp
*/ */
#include "g1_gimbal_driver.h" #include "g1_gimbal_driver.h"
#include "g1_gimbal_crc32.h" #include "g1_gimbal_crc32.h"

View File

@ -3,8 +3,8 @@
* @Author: L LC @amov * @Author: L LC @amov
* @Date: 2022-10-27 18:10:07 * @Date: 2022-10-27 18:10:07
* @LastEditors: L LC @amov * @LastEditors: L LC @amov
* @LastEditTime: 2023-09-07 10:45:13 * @LastEditTime: 2023-11-28 11:47:24
* @FilePath: /gimbal-sdk-multi-platform/src/G1/g1_gimbal_struct.h * @FilePath: /SpireCV/gimbal_ctrl/driver/src/G1/g1_gimbal_struct.h
*/ */
#ifndef G1_GIMBAL_STRUCT_H #ifndef G1_GIMBAL_STRUCT_H
#define G1_GIMBAL_STRUCT_H #define G1_GIMBAL_STRUCT_H

View File

@ -1,18 +0,0 @@
add_library(Gimabl_GX40)
file(GLOB LIB_FILES ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
target_sources(Gimabl_GX40
PUBLIC
${LIB_FILES}
)
target_link_libraries(Gimabl_GX40
PUBLIC
FIFO
)
target_include_directories(Gimabl_GX40
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}
)

View File

@ -3,8 +3,8 @@
* @Author: L LC @amov * @Author: L LC @amov
* @Date: 2023-10-20 16:33:07 * @Date: 2023-10-20 16:33:07
* @LastEditors: L LC @amov * @LastEditors: L LC @amov
* @LastEditTime: 2023-11-01 17:03:16 * @LastEditTime: 2023-11-28 11:46:51
* @FilePath: /gimbal-sdk-multi-platform/src/GX40/GX40_gimbal_crc16.h * @FilePath: /SpireCV/gimbal_ctrl/driver/src/GX40/GX40_gimbal_crc16.h
*/ */
#ifndef GX40_GIMBAL_CRC16_H #ifndef GX40_GIMBAL_CRC16_H
#define GX40_GIMBAL_CRC16_H #define GX40_GIMBAL_CRC16_H

View File

@ -3,8 +3,8 @@
* @Author: L LC @amov * @Author: L LC @amov
* @Date: 2023-10-20 16:08:17 * @Date: 2023-10-20 16:08:17
* @LastEditors: L LC @amov * @LastEditors: L LC @amov
* @LastEditTime: 2023-11-16 17:23:38 * @LastEditTime: 2023-11-28 11:46:45
* @FilePath: /gimbal-sdk-multi-platform/src/GX40/GX40_gimbal_driver.cpp * @FilePath: /SpireCV/gimbal_ctrl/driver/src/GX40/GX40_gimbal_driver.cpp
*/ */
#include <string.h> #include <string.h>
#include "GX40_gimbal_driver.h" #include "GX40_gimbal_driver.h"

View File

@ -4,8 +4,8 @@
* @Author: L LC @amov * @Author: L LC @amov
* @Date: 2023-10-20 16:08:13 * @Date: 2023-10-20 16:08:13
* @LastEditors: L LC @amov * @LastEditors: L LC @amov
* @LastEditTime: 2023-11-16 17:23:27 * @LastEditTime: 2023-11-28 11:46:35
* @FilePath: /gimbal-sdk-multi-platform/src/GX40/GX40_gimbal_driver.h * @FilePath: /SpireCV/gimbal_ctrl/driver/src/GX40/GX40_gimbal_driver.h
*/ */
#include "../amov_gimbal.h" #include "../amov_gimbal.h"
#include "../amov_gimbal_private.h" #include "../amov_gimbal_private.h"

View File

@ -3,8 +3,8 @@
* @Author: L LC @amov * @Author: L LC @amov
* @Date: 2023-11-02 17:50:26 * @Date: 2023-11-02 17:50:26
* @LastEditors: L LC @amov * @LastEditors: L LC @amov
* @LastEditTime: 2023-11-16 17:23:07 * @LastEditTime: 2023-11-28 11:46:28
* @FilePath: /gimbal-sdk-multi-platform/src/GX40/GX40_gimbal_funtion.cpp * @FilePath: /SpireCV/gimbal_ctrl/driver/src/GX40/GX40_gimbal_funtion.cpp
*/ */
#include <string.h> #include <string.h>
#include "GX40_gimbal_driver.h" #include "GX40_gimbal_driver.h"

View File

@ -3,8 +3,8 @@
* @Author: L LC @amov * @Author: L LC @amov
* @Date: 2023-10-20 16:08:13 * @Date: 2023-10-20 16:08:13
* @LastEditors: L LC @amov * @LastEditors: L LC @amov
* @LastEditTime: 2023-11-16 17:27:05 * @LastEditTime: 2023-11-28 11:46:22
* @FilePath: /gimbal-sdk-multi-platform/src/GX40/GX40_gimbal_struct.h * @FilePath: /SpireCV/gimbal_ctrl/driver/src/GX40/GX40_gimbal_struct.h
*/ */
#ifndef GX40_GIMBAL_STRUCT_H #ifndef GX40_GIMBAL_STRUCT_H
#define GX40_GIMBAL_STRUCT_H #define GX40_GIMBAL_STRUCT_H

View File

@ -3,8 +3,8 @@
* @Author: L LC @amov * @Author: L LC @amov
* @Date: 2022-10-27 18:10:06 * @Date: 2022-10-27 18:10:06
* @LastEditors: L LC @amov * @LastEditors: L LC @amov
* @LastEditTime: 2023-03-23 17:24:23 * @LastEditTime: 2023-11-28 11:45:25
* @FilePath: /gimbal-sdk-multi-platform/src/Q10f/Q10f_gimbal_crc32.h * @FilePath: /SpireCV/gimbal_ctrl/driver/src/Q10f/Q10f_gimbal_crc32.h
*/ */
#ifndef Q10F_GIMBAL_CRC32_H #ifndef Q10F_GIMBAL_CRC32_H
#define Q10F_GIMBAL_CRC32_H #define Q10F_GIMBAL_CRC32_H

View File

@ -3,8 +3,8 @@
* @Author: L LC @amov * @Author: L LC @amov
* @Date: 2022-10-27 18:10:06 * @Date: 2022-10-27 18:10:06
* @LastEditors: L LC @amov * @LastEditors: L LC @amov
* @LastEditTime: 2023-07-24 12:03:44 * @LastEditTime: 2023-11-28 11:45:31
* @FilePath: /gimbal-sdk-multi-platform/src/Q10f/Q10f_gimbal_driver.cpp * @FilePath: /SpireCV/gimbal_ctrl/driver/src/Q10f/Q10f_gimbal_driver.cpp
*/ */
#include "Q10f_gimbal_driver.h" #include "Q10f_gimbal_driver.h"
#include "Q10f_gimbal_crc32.h" #include "Q10f_gimbal_crc32.h"

View File

@ -3,8 +3,8 @@
* @Author: L LC @amov * @Author: L LC @amov
* @Date: 2022-10-28 12:24:21 * @Date: 2022-10-28 12:24:21
* @LastEditors: L LC @amov * @LastEditors: L LC @amov
* @LastEditTime: 2023-03-28 17:01:00 * @LastEditTime: 2023-11-28 11:45:36
* @FilePath: /gimbal-sdk-multi-platform/src/Q10f/Q10f_gimbal_driver.h * @FilePath: /SpireCV/gimbal_ctrl/driver/src/Q10f/Q10f_gimbal_driver.h
*/ */
#include "../amov_gimbal.h" #include "../amov_gimbal.h"
#include "../amov_gimbal_private.h" #include "../amov_gimbal_private.h"

View File

@ -3,8 +3,8 @@
* @Author: L LC @amov * @Author: L LC @amov
* @Date: 2023-03-02 10:00:52 * @Date: 2023-03-02 10:00:52
* @LastEditors: L LC @amov * @LastEditors: L LC @amov
* @LastEditTime: 2023-07-24 14:22:57 * @LastEditTime: 2023-11-28 11:45:41
* @FilePath: /gimbal-sdk-multi-platform/src/Q10f/Q10f_gimbal_funtion.cpp * @FilePath: /SpireCV/gimbal_ctrl/driver/src/Q10f/Q10f_gimbal_funtion.cpp
*/ */
#include "Q10f_gimbal_driver.h" #include "Q10f_gimbal_driver.h"
#include "Q10f_gimbal_crc32.h" #include "Q10f_gimbal_crc32.h"

View File

@ -3,8 +3,8 @@
* @Author: L LC @amov * @Author: L LC @amov
* @Date: 2022-10-27 18:10:07 * @Date: 2022-10-27 18:10:07
* @LastEditors: L LC @amov * @LastEditors: L LC @amov
* @LastEditTime: 2023-07-24 11:51:59 * @LastEditTime: 2023-11-28 11:45:46
* @FilePath: /gimbal-sdk-multi-platform/src/Q10f/Q10f_gimbal_struct.h * @FilePath: /SpireCV/gimbal_ctrl/driver/src/Q10f/Q10f_gimbal_struct.h
*/ */
#ifndef Q10F_GIMBAL_STRUCT_H #ifndef Q10F_GIMBAL_STRUCT_H
#define Q10F_GIMBAL_STRUCT_H #define Q10F_GIMBAL_STRUCT_H

View File

@ -3,8 +3,8 @@
* @Author: L LC @amov * @Author: L LC @amov
* @Date: 2022-10-28 11:54:11 * @Date: 2022-10-28 11:54:11
* @LastEditors: L LC @amov * @LastEditors: L LC @amov
* @LastEditTime: 2023-11-16 17:27:28 * @LastEditTime: 2023-11-28 11:44:37
* @FilePath: gimbal_ctrl/driver/src/amov_gimbal.cpp * @FilePath: /SpireCV/gimbal_ctrl/driver/src/amov_gimbal.cpp
*/ */
#include "amov_gimbal_private.h" #include "amov_gimbal_private.h"

View File

@ -3,8 +3,8 @@
* @Author: L LC @amov * @Author: L LC @amov
* @Date: 2022-10-27 18:34:26 * @Date: 2022-10-27 18:34:26
* @LastEditors: L LC @amov * @LastEditors: L LC @amov
* @LastEditTime: 2023-11-14 13:57:33 * @LastEditTime: 2023-11-28 11:44:44
* @FilePath: gimbal_ctrl/driver/src/amov_gimbal.h * @FilePath: /SpireCV/gimbal_ctrl/driver/src/amov_gimbal.h
*/ */
#ifndef AMOV_GIMBAL_H #ifndef AMOV_GIMBAL_H

View File

@ -3,8 +3,8 @@
* @Author : Aiyangsky * @Author : Aiyangsky
* @Date : 2023-05-13 10:39:20 * @Date : 2023-05-13 10:39:20
* @LastEditors: L LC @amov * @LastEditors: L LC @amov
* @LastEditTime: 2023-11-14 10:35:56 * @LastEditTime: 2023-11-28 11:45:18
* @FilePath: gimbal_ctrl/driver/src/amov_gimbal_private.h * @FilePath: /SpireCV/gimbal_ctrl/driver/src/amov_gimbal_private.h
*/ */
#ifndef __AMOV_GIMABL_PRIVATE_H #ifndef __AMOV_GIMABL_PRIVATE_H
#define __AMOV_GIMABL_PRIVATE_H #define __AMOV_GIMABL_PRIVATE_H

View File

@ -3,8 +3,8 @@
* @Author: L LC @amov * @Author: L LC @amov
* @Date: 2022-10-31 11:56:43 * @Date: 2022-10-31 11:56:43
* @LastEditors: L LC @amov * @LastEditors: L LC @amov
* @LastEditTime: 2023-10-23 18:05:59 * @LastEditTime: 2023-11-28 11:44:30
* @FilePath: gimbal_ctrl/driver/src/amov_gimbal_struct.h * @FilePath: /SpireCV/gimbal_ctrl/driver/src/amov_gimbal_struct.h
*/ */
#include <stdint.h> #include <stdint.h>

View File

@ -3,8 +3,8 @@
* @Author: L LC @amov * @Author: L LC @amov
* @Date: 2023-07-31 18:30:33 * @Date: 2023-07-31 18:30:33
* @LastEditors: L LC @amov * @LastEditors: L LC @amov
* @LastEditTime: 2023-07-31 18:55:18 * @LastEditTime: 2023-11-28 11:44:49
* @FilePath: gimbal_ctrl/driver/src/amov_tool.h * @FilePath: /SpireCV/gimbal_ctrl/driver/src/amov_tool.h
*/ */
namespace amovGimbalTools namespace amovGimbalTools

View File

@ -3,8 +3,8 @@
* @Author: L LC @amov * @Author: L LC @amov
* @Date: 2023-04-12 09:12:52 * @Date: 2023-04-12 09:12:52
* @LastEditors: L LC @amov * @LastEditors: L LC @amov
* @LastEditTime: 2023-04-18 11:37:42 * @LastEditTime: 2023-11-28 11:43:39
* @FilePath: /spirecv-gimbal-sdk/gimbal_ctrl/sv_gimbal.cpp * @FilePath: /SpireCV/gimbal_ctrl/sv_gimbal.cpp
*/ */
#include "amov_gimbal.h" #include "amov_gimbal.h"
#include "amov_gimbal_struct.h" #include "amov_gimbal_struct.h"

View File

@ -3,8 +3,8 @@
* @Author: L LC @amov * @Author: L LC @amov
* @Date: 2023-04-12 12:22:09 * @Date: 2023-04-12 12:22:09
* @LastEditors: L LC @amov * @LastEditors: L LC @amov
* @LastEditTime: 2023-04-13 10:17:21 * @LastEditTime: 2023-11-28 11:43:49
* @FilePath: /spirecv-gimbal-sdk/gimbal_ctrl/sv_gimbal_io.hpp * @FilePath: /SpireCV/gimbal_ctrl/sv_gimbal_io.hpp
*/ */
#ifndef __SV_GIMABL_IO_H #ifndef __SV_GIMABL_IO_H
#define __SV_GIMABL_IO_H #define __SV_GIMABL_IO_H