Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
duongnguyen committed May 26, 2023
1 parent 9fa7e5b commit 50d6f35
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,14 @@ This repo is officially SDK for all Gremsy's Payloads
This source code can run on any Linux system
In this repo, all examples were tested on Jetson Xavier NX (Jetpack 4.6)

## Clone the project
```
git clone -b develop --recurse-submodules [email protected]:Gremsy/PayloadSdk.git
```
## How to build
$ cd PayloadSdk/src
$ mkdir build && cd build
$ cmake ..
$ make -j6
```
cd PayloadSdk/src
mkdir build && cd build
cmake ..
make -j6
```
6 changes: 6 additions & 0 deletions examples/7._Move_Gimbal_SpeedMode/move_gimbal_speed_mode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,18 @@ int main(int argc, char *argv[]){


while(!time_to_exit){
printf("Move gimbal yaw to the right 20 deg/s, zoom in to 20x, delay in 5secs \n");
my_payload->setGimbalSpeed(0, 0 , 20, Gimbal_Protocol::INPUT_SPEED);
my_payload->setPayloadCameraParam(PAYLOAD_CAMERA_VIDEO_ZOOM_SUPER_RESOLUTION_FACTOR, ZOOM_SUPER_RESOLUTION_20X, PARAM_TYPE_UINT32);
usleep(5000000); // sleep 2s

printf("Move gimbal yaw to the left 20 deg/s, zoom in to 20x, delay in 5secs \n");
my_payload->setGimbalSpeed(-0, -0 , -20, Gimbal_Protocol::INPUT_SPEED);
my_payload->setPayloadCameraParam(PAYLOAD_CAMERA_VIDEO_ZOOM_SUPER_RESOLUTION_FACTOR, ZOOM_SUPER_RESOLUTION_1X, PARAM_TYPE_UINT32);
usleep(5000000); // sleep 2s

printf("Keep gimbal stop, zoom in to 10x, delay in 5secs \n");
my_payload->setPayloadCameraParam(PAYLOAD_CAMERA_VIDEO_ZOOM_SUPER_RESOLUTION_FACTOR, ZOOM_SUPER_RESOLUTION_10X, PARAM_TYPE_UINT32);
my_payload->setGimbalSpeed(0, 0 , 0, Gimbal_Protocol::INPUT_SPEED);
usleep(5000000); // sleep 2s
}
Expand Down
2 changes: 1 addition & 1 deletion libs/payloadSdkInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "payloadsdk.h"
#include "gimbal_protocol_v2.h"

#define SDK_VERSION "1.0.0_build.06Jan2023"
#define SDK_VERSION "1.0.1_build.25052023"

class PayloadSdkInterface
{
Expand Down

0 comments on commit 50d6f35

Please sign in to comment.