Skip to content

Commit 50d6f35

Browse files
author
duongnguyen
committed
update README.md
1 parent 9fa7e5b commit 50d6f35

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,14 @@ This repo is officially SDK for all Gremsy's Payloads
55
This source code can run on any Linux system
66
In this repo, all examples were tested on Jetson Xavier NX (Jetpack 4.6)
77

8+
## Clone the project
9+
```
10+
git clone -b develop --recurse-submodules [email protected]:Gremsy/PayloadSdk.git
11+
```
812
## How to build
9-
$ cd PayloadSdk/src
10-
$ mkdir build && cd build
11-
$ cmake ..
12-
$ make -j6
13+
```
14+
cd PayloadSdk/src
15+
mkdir build && cd build
16+
cmake ..
17+
make -j6
18+
```

examples/7._Move_Gimbal_SpeedMode/move_gimbal_speed_mode.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,18 @@ int main(int argc, char *argv[]){
5656

5757

5858
while(!time_to_exit){
59+
printf("Move gimbal yaw to the right 20 deg/s, zoom in to 20x, delay in 5secs \n");
5960
my_payload->setGimbalSpeed(0, 0 , 20, Gimbal_Protocol::INPUT_SPEED);
6061
my_payload->setPayloadCameraParam(PAYLOAD_CAMERA_VIDEO_ZOOM_SUPER_RESOLUTION_FACTOR, ZOOM_SUPER_RESOLUTION_20X, PARAM_TYPE_UINT32);
6162
usleep(5000000); // sleep 2s
63+
64+
printf("Move gimbal yaw to the left 20 deg/s, zoom in to 20x, delay in 5secs \n");
6265
my_payload->setGimbalSpeed(-0, -0 , -20, Gimbal_Protocol::INPUT_SPEED);
6366
my_payload->setPayloadCameraParam(PAYLOAD_CAMERA_VIDEO_ZOOM_SUPER_RESOLUTION_FACTOR, ZOOM_SUPER_RESOLUTION_1X, PARAM_TYPE_UINT32);
6467
usleep(5000000); // sleep 2s
68+
69+
printf("Keep gimbal stop, zoom in to 10x, delay in 5secs \n");
70+
my_payload->setPayloadCameraParam(PAYLOAD_CAMERA_VIDEO_ZOOM_SUPER_RESOLUTION_FACTOR, ZOOM_SUPER_RESOLUTION_10X, PARAM_TYPE_UINT32);
6571
my_payload->setGimbalSpeed(0, 0 , 0, Gimbal_Protocol::INPUT_SPEED);
6672
usleep(5000000); // sleep 2s
6773
}

libs/payloadSdkInterface.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include "payloadsdk.h"
66
#include "gimbal_protocol_v2.h"
77

8-
#define SDK_VERSION "1.0.0_build.06Jan2023"
8+
#define SDK_VERSION "1.0.1_build.25052023"
99

1010
class PayloadSdkInterface
1111
{

0 commit comments

Comments
 (0)