NEW: release DJI Payload-SDK version 3.6
Signed-off-by: DJI-Martin <DJI-Martin@dji.com>
This commit is contained in:
@ -0,0 +1,68 @@
|
||||
{
|
||||
"rc_lost_action": {
|
||||
"desc_cn": "失控行为",
|
||||
"desc_en": "rc lost action",
|
||||
"desc_range": "go_home/hover/landing",
|
||||
"value": "go_home"
|
||||
},
|
||||
"go_home_altitude": {
|
||||
"desc_cn": "返航高度",
|
||||
"desc_en": "go home altitude",
|
||||
"desc_range": "0 - 1500",
|
||||
"value": 60
|
||||
},
|
||||
"flying_speed": {
|
||||
"desc_cn": "飞行速度",
|
||||
"desc_en": "flying speed",
|
||||
"desc_range": "0 - 10",
|
||||
"value": 5.0
|
||||
},
|
||||
"home_point_latitude": {
|
||||
"desc_cn": "home点纬度",
|
||||
"desc_en": "home point latitude",
|
||||
"desc_range": "-90 - 90",
|
||||
"value": 22.5425
|
||||
},
|
||||
"home_point_longitude": {
|
||||
"desc_cn": "home点经度",
|
||||
"desc_en": "home point longitude",
|
||||
"desc_range": "-180 - 180",
|
||||
"value": 113.9575
|
||||
},
|
||||
"rtk_enable": {
|
||||
"desc_cn": "RTK开关",
|
||||
"desc_en": "RTK Enable",
|
||||
"desc_range": "true/false",
|
||||
"value": "false"
|
||||
},
|
||||
"HorizontalVisualObstacleAvoidanceEnable": {
|
||||
"desc_cn": "水平视觉避障开关",
|
||||
"desc_en": "Horizontal Visual Avoidance",
|
||||
"desc_range": "true/false",
|
||||
"value": "false"
|
||||
},
|
||||
"HorizontalRadarObstacleAvoidanceEnable": {
|
||||
"desc_cn": "水平TOF避障开关",
|
||||
"desc_en": "Horizontal TOF Avoidance",
|
||||
"desc_range": "true/false",
|
||||
"value": "false"
|
||||
},
|
||||
"UpwardsVisualObstacleAvoidanceEnable": {
|
||||
"desc_cn": "上视觉避障开关",
|
||||
"desc_en": "Upwards Visual Avoidance",
|
||||
"desc_range": "true/false",
|
||||
"value": "false"
|
||||
},
|
||||
"UpwardsRadarObstacleAvoidanceEnable": {
|
||||
"desc_cn": "上TOF开关",
|
||||
"desc_en": "Upwards TOF Avoidance",
|
||||
"desc_range": "true/false",
|
||||
"value": "false"
|
||||
},
|
||||
"DownwardsVisualObstacleAvoidanceEnable": {
|
||||
"desc_cn": "下视觉避障开关",
|
||||
"desc_en": "Downwards Visual Avoidance",
|
||||
"desc_range": "true/false",
|
||||
"value": "false"
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,48 @@
|
||||
/**
|
||||
********************************************************************
|
||||
* @file test_flight_controller_command_flying.h
|
||||
* @brief This is the header file for "test_flight_controller_command_flying.c", defining the structure and
|
||||
* (exported) function prototypes.
|
||||
*
|
||||
* @copyright (c) 2018 DJI. All rights reserved.
|
||||
*
|
||||
* All information contained herein is, and remains, the property of DJI.
|
||||
* The intellectual and technical concepts contained herein are proprietary
|
||||
* to DJI and may be covered by U.S. and foreign patents, patents in process,
|
||||
* and protected by trade secret or copyright law. Dissemination of this
|
||||
* information, including but not limited to data and other proprietary
|
||||
* material(s) incorporated within the information, in any form, is strictly
|
||||
* prohibited without the express written consent of DJI.
|
||||
*
|
||||
* If you receive this source code without DJI’s authorization, you may not
|
||||
* further disseminate the information, and you must immediately remove the
|
||||
* source code and notify DJI of its removal. DJI reserves the right to pursue
|
||||
* legal actions against you for any loss(es) or damage(s) caused by your
|
||||
* failure to do so.
|
||||
*
|
||||
*********************************************************************
|
||||
*/
|
||||
|
||||
/* Define to prevent recursive inclusion -------------------------------------*/
|
||||
#ifndef TEST_FLIGHT_CONTROLLER_COMMAND_FLYING_H
|
||||
#define TEST_FLIGHT_CONTROLLER_COMMAND_FLYING_H
|
||||
|
||||
/* Includes ------------------------------------------------------------------*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Exported constants --------------------------------------------------------*/
|
||||
|
||||
/* Exported types ------------------------------------------------------------*/
|
||||
|
||||
/* Exported functions --------------------------------------------------------*/
|
||||
void DjiUser_RunFlightControllerCommandFlyingSample(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // TEST_FLIGHT_CONTROLLER_COMMAND_FLYING_H
|
||||
/************************ (C) COPYRIGHT DJI Innovations *******END OF FILE******/
|
||||
@ -0,0 +1,109 @@
|
||||
/**
|
||||
********************************************************************
|
||||
* @file test_flight_controller_entry.cpp
|
||||
* @brief
|
||||
*
|
||||
* @copyright (c) 2018 DJI. All rights reserved.
|
||||
*
|
||||
* All information contained herein is, and remains, the property of DJI.
|
||||
* The intellectual and technical concepts contained herein are proprietary
|
||||
* to DJI and may be covered by U.S. and foreign patents, patents in process,
|
||||
* and protected by trade secret or copyright law. Dissemination of this
|
||||
* information, including but not limited to data and other proprietary
|
||||
* material(s) incorporated within the information, in any form, is strictly
|
||||
* prohibited without the express written consent of DJI.
|
||||
*
|
||||
* If you receive this source code without DJI’s authorization, you may not
|
||||
* further disseminate the information, and you must immediately remove the
|
||||
* source code and notify DJI of its removal. DJI reserves the right to pursue
|
||||
* legal actions against you for any loss(es) or damage(s) caused by your
|
||||
* failure to do so.
|
||||
*
|
||||
*********************************************************************
|
||||
*/
|
||||
|
||||
/* Includes ------------------------------------------------------------------*/
|
||||
#include <iostream>
|
||||
#include <flight_control/test_flight_control.h>
|
||||
#include "test_flight_controller_entry.h"
|
||||
#include "dji_logger.h"
|
||||
#include "test_flight_controller_command_flying.h"
|
||||
#include <waypoint_v2/test_waypoint_v2.h>
|
||||
#include <waypoint_v3/test_waypoint_v3.h>
|
||||
#include <interest_point/test_interest_point.h>
|
||||
|
||||
/* Private constants ---------------------------------------------------------*/
|
||||
|
||||
/* Private types -------------------------------------------------------------*/
|
||||
|
||||
/* Private values -------------------------------------------------------------*/
|
||||
|
||||
/* Private functions declaration ---------------------------------------------*/
|
||||
|
||||
/* Exported functions definition ---------------------------------------------*/
|
||||
void DjiUser_RunFlightControllerSample(void)
|
||||
{
|
||||
T_DjiOsalHandler *osalHandler = DjiPlatform_GetOsalHandler();
|
||||
char inputSelectSample;
|
||||
|
||||
start:
|
||||
osalHandler->TaskSleepMs(100);
|
||||
|
||||
std::cout
|
||||
<< "\n"
|
||||
<< "| Available commands: |\n"
|
||||
<< "| [0] Flight controller sample - control flying with keyboard |\n"
|
||||
<< "| [1] Flight controller sample - take off landing |\n"
|
||||
<< "| [2] Flight controller sample - take off position ctrl landing |\n"
|
||||
<< "| [3] Flight controller sample - take off go home force landing |\n"
|
||||
<< "| [4] Flight controller sample - take off velocity ctrl landing |\n"
|
||||
<< "| [5] Flight controller sample - arrest flying |\n"
|
||||
<< "| [6] Flight controller sample - set get parameters |\n"
|
||||
<< "| [7] Waypoint 2.0 sample - run airline mission by settings (only support on M300 RTK) |\n"
|
||||
<< "| [8] Waypoint 3.0 sample - run airline mission by kmz file (not support on M300 RTK) |\n"
|
||||
<< "| [9] Interest point sample - run interest point mission by settings (only support on M3E/M3T) |\n"
|
||||
<< std::endl;
|
||||
|
||||
std::cin >> inputSelectSample;
|
||||
switch (inputSelectSample) {
|
||||
case '0':
|
||||
DjiUser_RunFlightControllerCommandFlyingSample();
|
||||
goto start;
|
||||
case '1':
|
||||
DjiTest_FlightControlRunSample(E_DJI_TEST_FLIGHT_CTRL_SAMPLE_SELECT_TAKE_OFF_LANDING);
|
||||
goto start;
|
||||
case '2':
|
||||
DjiTest_FlightControlRunSample(E_DJI_TEST_FLIGHT_CTRL_SAMPLE_SELECT_TAKE_OFF_POSITION_CTRL_LANDING);
|
||||
goto start;
|
||||
case '3':
|
||||
DjiTest_FlightControlRunSample(E_DJI_TEST_FLIGHT_CTRL_SAMPLE_SELECT_TAKE_OFF_GO_HOME_FORCE_LANDING);
|
||||
goto start;
|
||||
case '4':
|
||||
DjiTest_FlightControlRunSample(E_DJI_TEST_FLIGHT_CTRL_SAMPLE_SELECT_TAKE_OFF_VELOCITY_CTRL_LANDING);
|
||||
goto start;
|
||||
case '5':
|
||||
DjiTest_FlightControlRunSample(E_DJI_TEST_FLIGHT_CTRL_SAMPLE_SELECT_ARREST_FLYING);
|
||||
goto start;
|
||||
case '6':
|
||||
DjiTest_FlightControlRunSample(E_DJI_TEST_FLIGHT_CTRL_SAMPLE_SELECT_SET_GET_PARAM);
|
||||
goto start;
|
||||
case '7':
|
||||
DjiTest_WaypointV2RunSample();
|
||||
break;
|
||||
case '8':
|
||||
DjiTest_WaypointV3RunSample();
|
||||
break;
|
||||
case '9':
|
||||
DjiTest_InterestPointRunSample();
|
||||
break;
|
||||
case 'q':
|
||||
break;
|
||||
default:
|
||||
USER_LOG_ERROR("Input command is invalid");
|
||||
goto start;
|
||||
}
|
||||
}
|
||||
|
||||
/* Private functions definition-----------------------------------------------*/
|
||||
|
||||
/****************** (C) COPYRIGHT DJI Innovations *****END OF FILE****/
|
||||
@ -0,0 +1,49 @@
|
||||
/**
|
||||
********************************************************************
|
||||
* @file test_flight_controller_entry.h
|
||||
* @brief This is the header file for "test_flight_controller_entry.c", defining the structure and
|
||||
* (exported) function prototypes.
|
||||
*
|
||||
* @copyright (c) 2018 DJI. All rights reserved.
|
||||
*
|
||||
* All information contained herein is, and remains, the property of DJI.
|
||||
* The intellectual and technical concepts contained herein are proprietary
|
||||
* to DJI and may be covered by U.S. and foreign patents, patents in process,
|
||||
* and protected by trade secret or copyright law. Dissemination of this
|
||||
* information, including but not limited to data and other proprietary
|
||||
* material(s) incorporated within the information, in any form, is strictly
|
||||
* prohibited without the express written consent of DJI.
|
||||
*
|
||||
* If you receive this source code without DJI’s authorization, you may not
|
||||
* further disseminate the information, and you must immediately remove the
|
||||
* source code and notify DJI of its removal. DJI reserves the right to pursue
|
||||
* legal actions against you for any loss(es) or damage(s) caused by your
|
||||
* failure to do so.
|
||||
*
|
||||
*********************************************************************
|
||||
*/
|
||||
|
||||
/* Define to prevent recursive inclusion -------------------------------------*/
|
||||
#ifndef TEST_FLIGHT_CONTROLLER_ENTRY_H
|
||||
#define TEST_FLIGHT_CONTROLLER_ENTRY_H
|
||||
|
||||
/* Includes ------------------------------------------------------------------*/
|
||||
#include <gimbal_manager/test_gimbal_manager.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Exported constants --------------------------------------------------------*/
|
||||
|
||||
/* Exported types ------------------------------------------------------------*/
|
||||
|
||||
/* Exported functions --------------------------------------------------------*/
|
||||
void DjiUser_RunFlightControllerSample(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // TEST_FLIGHT_CONTROLLER_ENTRY_H
|
||||
/************************ (C) COPYRIGHT DJI Innovations *******END OF FILE******/
|
||||
Reference in New Issue
Block a user