uav_camera_manager.h 67.7 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590
/**
 ********************************************************************
 * @file    autel_camera_manager.h
 * @brief   This is the header file for "autel_camera_manager.c", defining the structure and
 * (exported) function prototypes.
 *
 * @copyright (c) 2021 UAV. All rights reserved.
 *
 * All information contained herein is, and remains, the property of UAV.
 * The intellectual and technical concepts contained herein are proprietary
 * to UAV 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 UAV.
 *
 * If you receive this source code without UAV’s authorization, you may not
 * further disseminate the information, and you must immediately remove the
 * source code and notify UAV of its removal. UAV 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 UAV_CAMERA_MANAGER_H
#define UAV_CAMERA_MANAGER_H

/* Includes ------------------------------------------------------------------*/
#include "uav_typedef.h"

#ifdef __cplusplus
extern "C"
{
#endif

    /* Exported constants --------------------------------------------------------*/

    /* Exported types ------------------------------------------------------------*/
    /*! @brief the photo action of INTERVAL shooting photo mode
     */
    typedef enum
    {
        UAV_CAMERA_MANAGER_EXPOSURE_MODE_PROGRAM_AUTO = 1,       /*!< Program mode */
        UAV_CAMERA_MANAGER_EXPOSURE_MODE_SHUTTER_PRIORITY = 2,   /*!< Shutter priority mode */
        UAV_CAMERA_MANAGER_EXPOSURE_MODE_APERTURE_PRIORITY = 3,  /*!< Aperture priority mode */
        UAV_CAMERA_MANAGER_EXPOSURE_MODE_EXPOSURE_MANUAL = 4,    /*!< Manual mode */
        UAV_CAMERA_MANAGER_EXPOSURE_MODE_EXPOSURE_UNKNOWN = 0xFF /*!< The camera exposure mode is unknown. */
    } E_UAVCameraManagerExposureMode;

    /*! @brief the photo action of INTERVAL shooting photo mode
     */
    typedef enum
    {
        /*! The number of pictures to continuously take at one time in AEB mode is 3
         */
        UAV_CAMERA_MANAGER_PHOTO_AEB_COUNT_3 = 3,
        /*! The number of pictures to continuously take at one time in AEB mode is 5
         */
        UAV_CAMERA_MANAGER_PHOTO_AEB_COUNT_5 = 5,
        /*! The number of pictures to continuously take at one time in AEB mode is 7
         */
        UAV_CAMERA_MANAGER_PHOTO_AEB_COUNT_7 = 7,
        /*! The number of pictures to continuously take at one time in AEB mode is
         * unknown.
         */
        UAV_CAMERA_MANAGER_PHOTO_AEB_COUNT_KNOWN = 0xFF,
    } E_UAVCameraManagerPhotoAEBCount;

    /*! @breif CameraModule shutter mode.
     */
    typedef enum
    {
        /*! The shutter mode of camera is automatical */
        UAV_CAMERA_MANAGER_SHUTTER_AUTO_MODE = 0x00,
        /*! The shutter mode of camera is manual, the shutter speed setting is
           valid. */
        UAV_CAMERA_MANAGER_SHUTTER_MANUAL_MODE = 0x01,
    } E_UAVCameraManagerShutterMode;

    /*! @brief CameraModule shutter speed values.
     */
    typedef enum
    {
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_1_6400 = 1,     /*!< 1/6400 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_1_6000 = 2,     /*!< 1/6000 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_1_5000 = 3,     /*!< 1/5000 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_1_4000 = 4,     /*!< 1/4000 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_1_3200 = 5,     /*!< 1/3200 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_1_3000 = 6,     /*!< 1/3000 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_1_2500 = 7,     /*!< 1/2500 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_1_2000 = 8,     /*!< 1/2000 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_1_1600 = 9,     /*!< 1/1600 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_1_1500 = 10,    /*!< 1/1500 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_1_1250 = 11,    /*!< 1/1250 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_1_1000 = 12,    /*!< 1/1000 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_1_800 = 13,     /*!< 1/800 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_1_725 = 14,     /*!< 1/725 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_1_640 = 15,     /*!< 1/640 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_1_500 = 16,     /*!< 1/500 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_1_400 = 17,     /*!< 1/400 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_1_350 = 18,     /*!< 1/350 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_1_320 = 19,     /*!< 1/320 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_1_250 = 20,     /*!< 1/250 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_1_240 = 21,     /*!< 1/240 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_1_200 = 22,     /*!< 1/200 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_1_180 = 23,     /*!< 1/180 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_1_160 = 24,     /*!< 1/160 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_1_125 = 25,     /*!< 1/125 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_1_120 = 26,     /*!< 1/120 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_1_100 = 27,     /*!< 1/100 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_1_90 = 28,      /*!< 1/90 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_1_80 = 29,      /*!< 1/80 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_1_60 = 30,      /*!< 1/60 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_1_50 = 31,      /*!< 1/50 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_1_40 = 32,      /*!< 1/40 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_1_30 = 33,      /*!< 1/30 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_1_25 = 34,      /*!< 1/25 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_1_20 = 35,      /*!< 1/20 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_1_15 = 36,      /*!< 1/15 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_1_12DOT5 = 37,  /*!< 1/12.5 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_1_10 = 38,      /*!< 1/10 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_1_8 = 39,       /*!< 1/8 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_1_6DOT25 = 40,  /*!< 1/6.25 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_1_5 = 41,       /*!< 1/5 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_1_4 = 42,       /*!< 1/4 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_1_3 = 43,       /*!< 1/3 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_1_2DOT5 = 44,   /*!< 1/2.5 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_1_2 = 45,       /*!< 1/2 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_1_1DOT67 = 46,  /*!< 1/1.67 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_1_1DOT25 = 47,  /*!< 1/1.25 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_1 = 48,         /*!< 1.0 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_1DOT3 = 49,     /*!< 1.3 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_1DOT6 = 50,     /*!< 1.6 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_2 = 51,         /*!< 2.0 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_2DOT5 = 52,     /*!< 2.5 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_3 = 53,         /*!< 3.0 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_3DOT2 = 54,     /*!< 3.2 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_4 = 55,         /*!< 4.0 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_5 = 56,         /*!< 5.0 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_6 = 57,         /*!< 6.0 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_7 = 58,         /*!< 7.0 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_8 = 59,         /*!< 8.0 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_9 = 60,         /*!< 9.0 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_10 = 61,        /*!< 10.0 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_13 = 62,        /*!< 13.0 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_15 = 63,        /*!< 15.0 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_20 = 64,        /*!< 20.0 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_25 = 65,        /*!< 25.0 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_30 = 66,        /*!< 30.0 s */
        UAV_CAMERA_MANAGER_SHUTTER_SPEED_UNKNOWN = 0xFF, /*!< Unknown */
    } E_UAVCameraManagerShutterSpeed;

    /*! @brief CameraModule ISO values.
     */
    typedef enum
    {
        /*! The ISO value is automatically set. This cannot be used for all cameras
           when in Manual mode. */
        UAV_CAMERA_MANAGER_ISO_AUTO = 0x00,
        /*!  The ISO value is set to 100. */
        UAV_CAMERA_MANAGER_ISO_100 = 0x03,
        /*! The ISO value is set to 100. */
        UAV_CAMERA_MANAGER_ISO_200 = 0x04,
        /*! The ISO value is set to 100.*/
        UAV_CAMERA_MANAGER_ISO_400 = 0x05,
        /*! The ISO value is set to 100.*/
        UAV_CAMERA_MANAGER_ISO_800 = 0x06,
        /*! The ISO value is set to 100.*/
        UAV_CAMERA_MANAGER_ISO_1600 = 0x07,
        /*! The ISO value is set to 100.*/
        UAV_CAMERA_MANAGER_ISO_3200 = 0x08,
        /*! The ISO value is set to 100.*/
        UAV_CAMERA_MANAGER_ISO_6400 = 0x09,
        /*! The ISO value is set to 100.*/
        UAV_CAMERA_MANAGER_ISO_12800 = 0x0A,
        /*! The ISO value is set to 100.*/
        UAV_CAMERA_MANAGER_ISO_25600 = 0x0B,
        /*! ISO value is fixed by the camera firmware. When the camera color is set
         to D_LOG, camera will fix the ISO to a specific value in order to optimize
         the performance.
         */
        UAV_CAMERA_MANAGER_ISO_FIXED = 0xFF,
    } E_UAVCameraManagerISO;

    /*! @brief CameraModule exposure compensation.
     */
    typedef enum
    {
        /*! The camera's exposure compensation is -5.0ev.*/
        UAV_CAMERA_MANAGER_EXPOSURE_COMPENSATION_N_5_0 = 1,
        /*! The camera's exposure compensation is -4.7ev.*/
        UAV_CAMERA_MANAGER_EXPOSURE_COMPENSATION_N_4_7 = 2,
        /*! The camera's exposure compensation is -4.3ev.*/
        UAV_CAMERA_MANAGER_EXPOSURE_COMPENSATION_N_4_3 = 3,
        /*! The camera's exposure compensation is -4.0ev.*/
        UAV_CAMERA_MANAGER_EXPOSURE_COMPENSATION_N_4_0 = 4,
        /*! The camera's exposure compensation is -3.7ev.*/
        UAV_CAMERA_MANAGER_EXPOSURE_COMPENSATION_N_3_7 = 5,
        /*! The camera's exposure compensation is -3.3ev.*/
        UAV_CAMERA_MANAGER_EXPOSURE_COMPENSATION_N_3_3 = 6,
        /*! The camera's exposure compensation is -3.0ev.*/
        UAV_CAMERA_MANAGER_EXPOSURE_COMPENSATION_N_3_0 = 7,
        /*! The camera's exposure compensation is -2.7ev.*/
        UAV_CAMERA_MANAGER_EXPOSURE_COMPENSATION_N_2_7 = 8,
        /*! The camera's exposure compensation is -2.3ev.*/
        UAV_CAMERA_MANAGER_EXPOSURE_COMPENSATION_N_2_3 = 9,
        /*! The camera's exposure compensation is -2.0ev.*/
        UAV_CAMERA_MANAGER_EXPOSURE_COMPENSATION_N_2_0 = 10,
        /*! The camera's exposure compensation is -1.7ev.*/
        UAV_CAMERA_MANAGER_EXPOSURE_COMPENSATION_N_1_7 = 11,
        /*! The camera's exposure compensation is -1.3ev.*/
        UAV_CAMERA_MANAGER_EXPOSURE_COMPENSATION_N_1_3 = 12,
        /*! The camera's exposure compensation is -1.0ev.*/
        UAV_CAMERA_MANAGER_EXPOSURE_COMPENSATION_N_1_0 = 13,
        /*! The camera's exposure compensation is -0.7ev.*/
        UAV_CAMERA_MANAGER_EXPOSURE_COMPENSATION_N_0_7 = 14,
        /*! The camera's exposure compensation is -0.3ev.*/
        UAV_CAMERA_MANAGER_EXPOSURE_COMPENSATION_N_0_3 = 15,
        /*! The camera's exposure compensation is 0.0ev.*/
        UAV_CAMERA_MANAGER_EXPOSURE_COMPENSATION_N_0_0 = 16,
        /*! The camera's exposure compensation is +0.3ev.*/
        UAV_CAMERA_MANAGER_EXPOSURE_COMPENSATION_P_0_3 = 17,
        /*! The camera's exposure compensation is +0.7ev.*/
        UAV_CAMERA_MANAGER_EXPOSURE_COMPENSATION_P_0_7 = 18,
        /*! The camera's exposure compensation is +1.0ev.*/
        UAV_CAMERA_MANAGER_EXPOSURE_COMPENSATION_P_1_0 = 19,
        /*! The camera's exposure compensation is +1.3ev.*/
        UAV_CAMERA_MANAGER_EXPOSURE_COMPENSATION_P_1_3 = 20,
        /*! The camera's exposure compensation is +1.7ev.*/
        UAV_CAMERA_MANAGER_EXPOSURE_COMPENSATION_P_1_7 = 21,
        /*! The camera's exposure compensation is +2.0ev.*/
        UAV_CAMERA_MANAGER_EXPOSURE_COMPENSATION_P_2_0 = 22,
        /*! The camera's exposure compensation is +2.3ev.*/
        UAV_CAMERA_MANAGER_EXPOSURE_COMPENSATION_P_2_3 = 23,
        /*! The camera's exposure compensation is +2.7ev.*/
        UAV_CAMERA_MANAGER_EXPOSURE_COMPENSATION_P_2_7 = 24,
        /*! The camera's exposure compensation is +3.0ev.*/
        UAV_CAMERA_MANAGER_EXPOSURE_COMPENSATION_P_3_0 = 25,
        /*! The camera's exposure compensation is +3.3ev.*/
        UAV_CAMERA_MANAGER_EXPOSURE_COMPENSATION_P_3_3 = 26,
        /*! The camera's exposure compensation is +3.7ev.*/
        UAV_CAMERA_MANAGER_EXPOSURE_COMPENSATION_P_3_7 = 27,
        /*! The camera's exposure compensation is +4.0ev.*/
        UAV_CAMERA_MANAGER_EXPOSURE_COMPENSATION_P_4_0 = 28,
        /*! The camera's exposure compensation is +4.3ev.*/
        UAV_CAMERA_MANAGER_EXPOSURE_COMPENSATION_P_4_3 = 29,
        /*! The camera's exposure compensation is +4.7ev.*/
        UAV_CAMERA_MANAGER_EXPOSURE_COMPENSATION_P_4_7 = 30,
        /*! The camera's exposure compensation is +5.0ev.*/
        UAV_CAMERA_MANAGER_EXPOSURE_COMPENSATION_P_5_0 = 31,
        /*! The camera's exposure compensation is fixed by the camera.*/
        UAV_CAMERA_MANAGER_EXPOSURE_COMPENSATION_FIXED = 0xFF,
    } E_UAVCameraManagerExposureCompensation;

    /*! @brief CameraModule aperture values.
     *  @note X5, X5R, Z30, Phantom 4 Pro camera, X4S and X5S support this
     * setting.
     */
    typedef enum
    {
        /*! 	The Aperture value is f/1.6. It is only supported by Z30
           camera.*/
        UAV_CAMERA_MANAGER_APERTURE_F_1_DOT_6 = 160,
        /*! The Aperture value is f/1.7.*/
        UAV_CAMERA_MANAGER_APERTURE_F_1_DOT_7 = 170,
        /*! The Aperture value is f/1.8.*/
        UAV_CAMERA_MANAGER_APERTURE_F_1_DOT_8 = 180,
        /*! The Aperture value is f/2.*/
        UAV_CAMERA_MANAGER_APERTURE_F_2 = 200,
        /*! The Aperture value is f/2.2.*/
        UAV_CAMERA_MANAGER_APERTURE_F_2_DOT_2 = 220,
        /*! The Aperture value is f/2.4. It is only supported by Z30 camera.*/
        UAV_CAMERA_MANAGER_APERTURE_F_2_DOT_4 = 240,
        /*! The Aperture value is f/2.5.*/
        UAV_CAMERA_MANAGER_APERTURE_F_2_DOT_5 = 250,
        /*! The Aperture value is f/2.6.*/
        UAV_CAMERA_MANAGER_APERTURE_F_2_DOT_6 = 260,
        /*! The Aperture value is f/2.8.*/
        UAV_CAMERA_MANAGER_APERTURE_F_2_DOT_8 = 280,
        /*! The Aperture value is f/3.2.*/
        UAV_CAMERA_MANAGER_APERTURE_F_3_DOT_2 = 320,
        /*! The Aperture value is f/3.4.*/
        UAV_CAMERA_MANAGER_APERTURE_F_3_DOT_4 = 340,
        /*! The Aperture value is f/3.5.*/
        UAV_CAMERA_MANAGER_APERTURE_F_3_DOT_5 = 350,
        /*! The Aperture value is f/4.*/
        UAV_CAMERA_MANAGER_APERTURE_F_4 = 400,
        /*! The Aperture value is f/4.5.*/
        UAV_CAMERA_MANAGER_APERTURE_F_4_DOT_5 = 450,
        /*! The Aperture value is f/4.8.*/
        UAV_CAMERA_MANAGER_APERTURE_F_4_DOT_8 = 480,
        /*! The Aperture value is f/5.*/
        UAV_CAMERA_MANAGER_APERTURE_F_5 = 500,
        /*! The Aperture value is f/5.6.*/
        UAV_CAMERA_MANAGER_APERTURE_F_5_DOT_6 = 560,
        /*! The Aperture value is f/6.3.*/
        UAV_CAMERA_MANAGER_APERTURE_F_6_DOT_3 = 630,
        /*! The Aperture value is f/6.8.*/
        UAV_CAMERA_MANAGER_APERTURE_F_6_DOT_8 = 680,
        /*! The Aperture value is f/7.1.*/
        UAV_CAMERA_MANAGER_APERTURE_F_7_DOT_1 = 710,
        /*! The Aperture value is f/8.*/
        UAV_CAMERA_MANAGER_APERTURE_F_8 = 800,
        /*! The Aperture value is f/9.*/
        UAV_CAMERA_MANAGER_APERTURE_F_9 = 900,
        /*! The Aperture value is f/9.6.*/
        UAV_CAMERA_MANAGER_APERTURE_F_9_DOT_6 = 960,
        /*! The Aperture value is f/10.*/
        UAV_CAMERA_MANAGER_APERTURE_F_10 = 1000,
        /*! The Aperture value is f/11.*/
        UAV_CAMERA_MANAGER_APERTURE_F_11 = 1100,
        /*! The Aperture value is f/13.*/
        UAV_CAMERA_MANAGER_APERTURE_F_13 = 1300,
        /*! The Aperture value is f/14.*/
        UAV_CAMERA_MANAGER_APERTURE_F_14 = 1400,
        /*! The Aperture value is f/16.*/
        UAV_CAMERA_MANAGER_APERTURE_F_16 = 1600,
        /*! The Aperture value is f/18.*/
        UAV_CAMERA_MANAGER_APERTURE_F_18 = 1800,
        /*! The Aperture value is f/19.*/
        UAV_CAMERA_MANAGER_APERTURE_F_19 = 1900,
        /*! The Aperture value is f/20.*/
        UAV_CAMERA_MANAGER_APERTURE_F_20 = 2000,
        /*! The Aperture value is f/22.*/
        UAV_CAMERA_MANAGER_APERTURE_F_22 = 2200,
        /*! The Aperture value is Unknown. */
        UAV_CAMERA_MANAGER_APERTURE_F_UNKNOWN = 0xFFFF,
    } E_UAVCameraManagerAperture;

    typedef enum
    {
        UAV_CAMERA_MANAGER_RECORDING_CONTROL_STOP = 0,
        UAV_CAMERA_MANAGER_RECORDING_CONTROL_BEGIN = 1,
        UAV_CAMERA_MANAGER_RECORDING_CONTROL_PAUSE = 2,
        UAV_CAMERA_MANAGER_RECORDING_CONTROL_RESUME = 3,
    } E_UAVCameraManagerRecordingControl;

    typedef enum
    {
        UAV_CAMERA_MANAGER_FILE_LIST_COUNT_60_PER_SLICE = 60,
        UAV_CAMERA_MANAGER_FILE_LIST_COUNT_120_PER_SLICE = 120,
        UAV_CAMERA_MANAGER_FILE_LIST_COUNT_ALL_PER_SLICE = 0xFFFF,
    } E_UAVCameraManagerFileListCountPerSlice;

    typedef enum
    {
        UAV_CAMERA_MANAGER_SOURCE_DEFAULT_CAM = 0x0,
        UAV_CAMERA_MANAGER_SOURCE_WIDE_CAM = 0x1,
        UAV_CAMERA_MANAGER_SOURCE_ZOOM_CAM = 0x2,
        UAV_CAMERA_MANAGER_SOURCE_IR_CAM = 0x3,
        UAV_CAMERA_MANAGER_SOURCE_VISIBLE_CAM = 0x7,
    } E_UAVCameraManagerStreamSource;

    typedef enum
    {
        UAV_CAMERA_MANAGER_NIGHT_SCENE_MODE_DISABLE = 0,
        UAV_CAMERA_MANAGER_NIGHT_SCENE_MODE_ENABLE = 1,
        UAV_CAMERA_MANAGER_NIGHT_SCENE_MODE_AUTO = 2,
    } E_UAVCameraManagerNightSceneMode;

    typedef enum
    {
        UAV_CAMERA_MANAGER_CAPTURE_OR_RECORDING_CAPTURE = 0,
        UAV_CAMERA_MANAGER_CAPTURE_OR_RECORDING_RECORDING = 1,
    } E_UAVCameraManagerCaptureOrRecording;

    typedef enum
    {
        UAV_CAMERA_MANAGER_EXPAND_NAME_TYPE_FILE = 1,
        UAV_CAMERA_MANAGER_EXPAND_NAME_TYPE_DIR = 2,
    } E_UAVCameraManagerExpandNameType;

    typedef enum
    {
        UAV_CAMERA_MANAGER_PHOTO_RATIO_4X3 = 0,
        UAV_CAMERA_MANAGER_PHOTO_RATIO_16X9 = 1,
    } E_UAVCameraManagerPhotoRatio;

    typedef struct
    {
        uint8_t firmware_version[4];
    } T_UAVCameraManagerFirmwareVersion;

    typedef struct
    {
        autel_f32_t currentOpticalZoomFactor;
        autel_f32_t maxOpticalZoomFactor;
    } T_UAVCameraManagerOpticalZoomParam;

    typedef struct
    {
        uint8_t second;
        uint8_t minute;
        uint8_t hour;
        uint8_t day;
        uint8_t month;
        uint16_t year;
    } T_UAVCameraManagerFileCreateTime;

    typedef struct
    {
        union
        {
            struct
            {
                uint32_t attributePhotoReserved : 22;
                uint32_t attributePhotoRatio : 8;
                uint32_t attributePhotoRotation : 2;
                uint8_t reserved[12];
            } photoAttribute;
            struct
            {
                uint32_t attributeVideoDuration : 16;
                uint32_t attributeVideoFramerate : 6;
                uint32_t attributeVideoRotation : 2;
                uint32_t attributeVideoResolution : 8;
                uint8_t reserved[12];
            } videoAttribute;
        };
    } T_UAVCameraManagerFileAttributeData;

    typedef struct
    {
        uint16_t sliceStartIndex;
        E_UAVCameraManagerFileListCountPerSlice countPerSlice;
    } T_UAVCameraManagerSliceConfig;

    typedef enum
    {
        UAV_DOWNLOAD_FILE_EVENT_START,
        UAV_DOWNLOAD_FILE_EVENT_TRANSFER,
        UAV_DOWNLOAD_FILE_EVENT_END,
    } E_UAVDownloadFileEvent;

    typedef enum
    {
        UAV_CAMERA_MANAGER_VIDEO_RESOLUTION_640X480P = 0,    // 640X480P
        UAV_CAMERA_MANAGER_VIDEO_RESOLUTION_1280X640P = 2,   // 1280X640P
        UAV_CAMERA_MANAGER_VIDEO_RESOLUTION_1280X720P = 4,   // 1280X720P
        UAV_CAMERA_MANAGER_VIDEO_RESOLUTION_1920X1080P = 10, // 1920X1080P
        UAV_CAMERA_MANAGER_VIDEO_RESOLUTION_3840X2160P = 16, // 3840X2160P
        UAV_CAMERA_MANAGER_VIDEO_RESOLUTION_4000X3000P = 32, // 4000X3000P
    } E_UAVCameraManagerVideoResolution;

    typedef enum
    {
        UAV_CAMERA_MANAGER_VIDEO_FRAME_RATE_15FPS = 0, // 14.985
        UAV_CAMERA_MANAGER_VIDEO_FRAME_RATE_25FPS = 2, // 25.000
        UAV_CAMERA_MANAGER_VIDEO_FRAME_RATE_30FPS = 3, // 29.970
        UAV_CAMERA_MANAGER_VIDEO_FRAME_RATE_60FPS = 6, // 59.940
    } E_UAVCameraManagerVideoFrameRate;

    typedef enum
    {
        UAV_CAMERA_MANAGER_PHOTO_STORAGE_FORMAT_RAW = 0,
        UAV_CAMERA_MANAGER_PHOTO_STORAGE_FORMAT_JPEG = 1,
        UAV_CAMERA_MANAGER_PHOTO_STORAGE_FORMAT_RAW_JPEG = 2,
        UAV_CAMERA_MANAGER_PHOTO_STORAGE_FORMAT_YUV = 3,   // 保存为YUV格式的图片
        UAV_CAMERA_MANAGER_PHOTO_STORAGE_FORMAT_RJPEG = 7, // Radiometric JPEG
    } E_UAVCameraManagerPhotoStorageFormat;

    typedef enum
    {
        UAV_CAMERA_MANAGER_VIDEO_STORAGE_FORMAT_MOV = 0,
        UAV_CAMERA_MANAGER_VIDEO_STORAGE_FORMAT_MP4 = 1,
    } E_UAVCameraManagerVideoStorageFormat;

    typedef enum
    {
        UAV_CAMERA_MANAGER_METERING_MODE_CENTRAL = 0,
        UAV_CAMERA_MANAGER_METERING_MODE_AVERAGE = 1,
        UAV_CAMERA_MANAGER_METERING_MODE_SPOT = 2,
    } E_UAVCameraManagerMeteringMode;

    typedef enum
    {
        UAV_CAMERA_MANAGER_FFC_MODE_MANUAL = 0,
        UAV_CAMERA_MANAGER_FFC_MODE_AUTO = 1,
    } E_UAVCameraManagerFfcMode;

    typedef enum
    {
        UAV_CAMERA_MANAGER_IR_GAIN_MODE_AUTO = 0,
        UAV_CAMERA_MANAGER_IR_GAIN_MODE_LOW = 1,
        UAV_CAMERA_MANAGER_IR_GAIN_MODE_HIGH = 2,
    } E_UAVCameraManagerIrGainMode;

    typedef enum
    {
        /* not capturing*/
        UAV_CAMERA_MANAGER_CAPTURING_STATE_IDLE = 0,

        /* doing single capture */
        UAV_CAMERA_MANAGER_CAPTURING_STATE_SINGLE = 1,

        /* doing multi capture */
        UAV_CAMERA_MANAGER_CAPTURING_STATE_MULTI = 2,
    } E_UAVCameraManagerCapturingState;

    typedef enum
    {
        UAV_CAMERA_MANAGER_RECORDING_STATE_IDLE = 0,
        UAV_CAMERA_MANAGER_RECORDING_STATE_STARTING = 0,
        UAV_CAMERA_MANAGER_RECORDING_STATE_RECORDING = 0,
        UAV_CAMERA_MANAGER_RECORDING_STATE_STOPPING = 0,
    } E_UAVCameraManagerRecordingState;

    /*!< Attention: when the remote control is in split-screen mode, the coordinate range of the x-axis is 0 ~ 0.5
     * */
    typedef struct
    {
        autel_f32_t pointX; /*! x-coordinate of point thermometry, range: 0 ~ 1 */
        autel_f32_t pointY; /*! y-coordinate of point thermometry, range: 0 ~ 1 */
    } T_UAVCameraManagerPointThermometryCoordinate;

    typedef struct
    {
        autel_f32_t areaTempLtX; /*! x-coordinate of the upper left corner of the area thermometry, range: 0 ~ 1 */
        autel_f32_t areaTempLtY; /*! y-coordinate of the upper left corner of the area thermometry, range: 0 ~ 1 */
        autel_f32_t areaTempRbX; /*! x-coordinate of the lower right corner of the area thermometry, range: 0 ~ 1 */
        autel_f32_t areaTempRbY; /*! y-coordinate of the lower right corner of the area thermometry, range: 0 ~ 1 */
    } T_UAVCameraManagerAreaThermometryCoordinate;

    // result of point thermometry
    typedef struct
    {
        autel_f32_t pointX;           /*! x-coordinate of point thermometry, range: 0 ~ 1 */
        autel_f32_t pointY;           /*! y-coordinate of point thermometry, range: 0 ~ 1 */
        autel_f32_t pointTemperature; /*! The temperature of the current point */
    } T_UAVCameraManagerPointThermometryData;

    // result of area thermometry
    typedef struct
    {
        autel_f32_t areaTempLtX;       /*! x_coordinate of the upper left corner of the current thermometry area */
        autel_f32_t areaTempLtY;       /*! y_coordinate of the upper left corner of the current thermometry area */
        autel_f32_t areaTempRbX;       /*! x_coordinate of the lower right corner of the current thermometry area */
        autel_f32_t areaTempRbY;       /*! y_coordinate of the lower right corner of the current thermometry area */
        autel_f32_t areaAveTemp;       /*! The average temperature of the current thermometry area */
        autel_f32_t areaMinTemp;       /*! The minimum temperature of the current thermometry area */
        autel_f32_t areaMaxTemp;       /*! The maximum temperature of the current thermometry area */
        autel_f32_t areaMinTempPointX; /*! x_coordinate of the minimum temperature in the thermometry area */
        autel_f32_t areaMinTempPointY; /*! y_coordinate of the minimum temperature in the thermometry area */
        autel_f32_t areaMaxTempPointX; /*! x_coordinate of the maximum temperature in the thermometry area */
        autel_f32_t areaMaxTempPointY; /*! y_coordinate of the maximum temperature in the thermometry area */
    } T_UAVCameraManagerAreaThermometryData;

    typedef struct
    {
        E_UAVDownloadFileEvent downloadFileEvent;
        uint32_t fileIndex;
        uint32_t fileSize;
        autel_f32_t progressInPercent;
    } T_UAVDownloadFilePacketInfo;

    typedef struct
    {
        autel_f64_t longitude; /*! Range: [-180,180] */
        autel_f64_t latitude;  /*! Range: [-90,90] */
        int32_t altitude;      /*! Unit: 0.1m */
        int32_t distance;      /*! Unit: 0.1m */
        int16_t screenX;       /*! Unit: 0.1% */
        int16_t screenY;       /*! Unit: 0.1% */
        bool enable_lidar;
        uint8_t exception;
    } T_UAVCameraManagerLaserRangingInfo;

    typedef struct
    {
        uint32_t size;
        E_UAVCameraManagerStreamSource streamSource[4];
        E_UAVCameraManagerStreamSource streamStorage[4];
    } T_UAVCameraManagerStreamList;

    typedef struct
    {
        E_UAVCameraManagerVideoResolution videoResolution;
        E_UAVCameraManagerVideoFrameRate videoFrameRate;
    } T_UAVCameraManagerVideoFormat;

    typedef struct
    {
        uint8_t size;
        union
        {
            E_UAVCameraManagerPhotoStorageFormat photoStorageFormat[16];
            E_UAVCameraManagerVideoStorageFormat videoStorageFormat[16];
            E_UAVCameraManagerPhotoRatio photoRatioFormat[16];
            E_UAVCameraManagerStreamSource streamSource[16];
            E_UAVCameraManagerStreamSource streamStorage[16];
            E_UAVCameraManagerNightSceneMode nightSceneMode[16];
        };
        uint32_t minValue;
        uint32_t maxValue;
    } T_UAVCameraManagerRangeList;

    typedef struct
    {
        double lowGainTempMin;
        double lowGainTempMax;
        double highGainTempMin;
        double highGainTempMax;
    } T_UAVCameraManagerIrTempMeterRange;

    typedef struct
    {
        uint32_t totalCapacity;  /* MByte */
        uint32_t remainCapacity; /* MByte */
    } T_UAVCameraManagerStorageInfo;

    typedef struct
    {
        uint32_t flag; /* 0xFFFFFFFF */
        uint32_t seqNum;
        uint64_t timestamp;
        uint32_t dataByte; /* actual num of bytes used for points */
    } T_UAVCameraManagerPointCloudHeader;

    typedef struct
    {
        float x; /* the x-axis of NED coordinate system */
        float y; /* the y-axis of NED coordinate system */
        float z; /* the z-axis of NED coordinate system */
        uint8_t intensity;
        uint8_t r;
        uint8_t g;
        uint8_t b;
    } T_UAVCameraManagerPointXYZRGBInfo;

    typedef struct
    {
        T_UAVCameraManagerPointCloudHeader pointCloudHeader;
        uint32_t crc_header;
        uint32_t crc_rest;
        T_UAVCameraManagerPointXYZRGBInfo points[1];
    } T_UAVCameraManagerColorPointCloud;

#define UAV_FILE_NAME_SIZE_MAX 256
#define UAV_FILE_PATH_SIZE_MAX (UAV_FILE_NAME_SIZE_MAX + 256)

    typedef struct
    {
        char fileName[UAV_FILE_NAME_SIZE_MAX];
        uint32_t fileSize;
        uint32_t fileIndex;
        T_UAVCameraManagerFileCreateTime createTime;
        E_UAVCameraMediaFileSubType type;
        T_UAVCameraManagerFileAttributeData attributeData;
    } T_UAVCameraManagerSubFileListInfo;

    typedef struct
    {
        char fileName[UAV_FILE_NAME_SIZE_MAX];
        uint32_t fileSize;
        uint32_t fileIndex;
        T_UAVCameraManagerFileCreateTime createTime;
        E_UAVCameraMediaFileType type;
        T_UAVCameraManagerFileAttributeData attributeData;
        uint8_t subFileListTotalNum;
        T_UAVCameraManagerSubFileListInfo *subFileListInfo;
    } T_UAVCameraManagerFileListInfo;

    typedef struct
    {
        uint16_t totalCount;
        T_UAVCameraManagerFileListInfo *fileListInfo;
    } T_UAVCameraManagerFileList;

    typedef T_UAVReturnCode (*UAVCameraManagerDownloadFileDataCallback)(T_UAVDownloadFilePacketInfo packetInfo,
                                                                        const uint8_t *data,
                                                                        uint16_t dataLen);

    /* Exported functions --------------------------------------------------------*/
    /**
     * @brief Initialise camera manager module, and user should call this function
     * before using camera manager features.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_Init(void);

    /**
     * @brief Deinitialise camera manager module.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_DeInit(void);

    /**
     * @brief Get camera type of the selected camera mounted position.
     * @param position: camera mounted position
     * @param cameraType: see references of E_UAVCameraType.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_GetCameraType(E_UAVCameraType *cameraType);

    /**
     * @brief Get camera firmware version of the selected camera mounted position.
     * @param position: camera mounted position
     * @param firmwareVersion: see references of T_UAVCameraManagerFirmwareVersion.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_GetFirmwareVersion(T_UAVCameraManagerFirmwareVersion *firmwareVersion);

    /**
     * @brief Get camera connect status.
     * @param position: camera mounted position
     * @param connectStatus: returned value of connect status
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_GetCameraConnectStatus(bool *connectStatus);

    /**
     * @brief Set camera working mode of the selected camera mounted position.
     * @note Set the camera's work mode to taking pictures, video, playback or
     * download and so on. Please note that you cannot change the mode when a certain task
     * is executing.This action will cost about 1~2s.
     * @param position: camera mounted position
     * @param workMode: see reference of E_UAVCameraMode.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_SetMode(E_UAVCameraMode workMode);
    T_UAVReturnCode UAVCameraManager_SetModeEx(int32_t payloadID, E_UAVCameraMode workMode);

    /**
     * @brief Get camera working mode of the selected camera mounted position.
     * @param position: camera mounted position
     * @param workMode: see reference of E_UAVCameraMode.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_GetMode(E_UAVCameraMode &workMode);
    T_UAVReturnCode UAVCameraManager_GetModeEx(int32_t payloadID, E_UAVCameraMode &workMode);

    /**
     * @brief Set camera shoot mode of the selected camera mounted position.
     * @param position: camera mounted position
     * @param mode: see reference of E_UAVCameraShootPhotoMode.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_SetShootPhotoMode(E_UAVCameraShootPhotoMode mode);
    T_UAVReturnCode UAVCameraManager_SetShootPhotoModeEx(int32_t payloadID, E_UAVCameraShootPhotoMode mode);

    /**
     * @brief Get camera shoot mode of the selected camera mounted position.
     * @param position: camera mounted position
     * @param mode: see reference of E_UAVCameraShootPhotoMode.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_GetShootPhotoMode(E_UAVCameraShootPhotoMode &takePhotoMode);
    T_UAVReturnCode UAVCameraManager_GetShootPhotoModeEx(int32_t payloadID, E_UAVCameraShootPhotoMode &takePhotoMode);

    /**
     * @brief Start to shoot photo.
     * @note Camera must be in ShootPhoto mode. For thermal imaging camera,
     * Single photo can be taken while recording video. The SD card state should
     * be checked before this method is used to ensure sufficient space exists.
     * @param position: camera mounted position
     * @param mode: see reference of E_UAVCameraShootPhotoMode.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_StartShootPhoto(void);
    T_UAVReturnCode UAVCameraManager_StartShootPhotoEx(int32_t payloadID);

    /**
     * @brief Stop to shoot photo when you are in taking photo.
     * @note StartShootPhoto has been invoked and the shoot mode is either
     * Interval or Time-lapse. If the shoot mode is set to single, the camera
     * will automatically stop taking the photo once the individual photo is
     * taken.
     * @param position: camera mounted position
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_StopShootPhoto(void);
    T_UAVReturnCode UAVCameraManager_StopShootPhotoEx(int32_t payloadID);

    /**
     * @brief Get camera capturing state.
     * @note L1/P1 do not support this API.
     * @param position: camera mounted position
     * @param capturingState: result of getting, see E_UAVCameraManagerCapturingState.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_GetCapturingState(E_UAVCameraManagerCapturingState &capturingState);

    /**
     * @brief Set the burst count in the burst take-photo mode.
     * @param position: camera mounted position
     * @param count: see reference of E_UAVCameraBurstCount.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_SetPhotoBurstCount(E_UAVCameraBurstCount count);
    T_UAVReturnCode UAVCameraManager_SetPhotoBurstCountEx(int32_t payloadID, E_UAVCameraBurstCount count);

    /**
     * @brief Get the burst count in the burst take-photo mode.
     * @param position: camera mounted position
     * @param count: see reference of E_UAVCameraBurstCount.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_GetPhotoBurstCount(E_UAVCameraBurstCount &count);
    T_UAVReturnCode UAVCameraManager_GetPhotoBurstCountEx(int32_t payloadID, E_UAVCameraBurstCount &count);

    /**
     * @brief Set the burst count in the AEB(Automatic Exposure Bracketing) take-photo mode.
     * @param position: camera mounted position
     * @param count: see reference of E_UAVCameraManagerPhotoAEBCount.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_SetPhotoAEBCount(E_UAVCameraManagerPhotoAEBCount count);

    /**
     * @brief Get the burst count in the AEB(Automatic Exposure Bracketing) take-photo mode.
     * @param position: camera mounted position
     * @param count: see reference of E_UAVCameraManagerPhotoAEBCount.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_GetPhotoAEBCount(E_UAVCameraManagerPhotoAEBCount &count);

    /**
     * @brief Set the parameters in the INTERVAL take-photo mode.
     * @note When in this shoot-photo mode, The camera will capture a photo, wait
     * a specified interval of time, take another photo, and continue in this
     * manner until it has taken the required number of photos. Also supported by
     * thermal imaging camera.
     * @param position: camera mounted position
     * @param intervalSetting: see reference of T_UAVCameraPhotoTimeIntervalSettings.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_SetPhotoTimeIntervalSettings(uint32_t interval);
    T_UAVReturnCode UAVCameraManager_SetPhotoTimeIntervalSettingsEx(int32_t payloadID, uint32_t interval);

    /**
     * @brief Get the parameters in the INTERVAL take-photo mode.
     * @param position: camera mounted position
     * @param intervalSetting: see reference of T_UAVCameraPhotoTimeIntervalSettings.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_GetPhotoTimeIntervalSettings(uint32_t &interval);
    T_UAVReturnCode UAVCameraManager_GetPhotoTimeIntervalSettingsEx(int32_t payloadID, uint32_t &interval);

    /**
     * @brief Get remain time of interval shooting.
     * @note L1/P1 do not support this API.
     * @param position: camera mounted position
     * @param remainTime: time in seconds.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_GetIntervalShootingRemainTime(uint8_t &remainTime);

    /**
     * @brief Set camera focus mode of the selected camera mounted position.
     * @note Set the lens focus mode. When the focus mode is auto, the target
     * point is the focal point. When the focus mode is manual, the target point
     * is the zoom out area if the focus assistant is enabled for the manual
     * mode.
     * @param position: camera mounted position
     * @param focusMode: see reference of E_UAVCameraFocusMode.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_SetFocusMode(E_UAVCameraFocusMode focusMode);
    T_UAVReturnCode UAVCameraManager_SetFocusModeEx(int32_t payloadID, E_UAVCameraFocusMode focusMode);

    /**
     * @brief Get camera focus mode of the selected camera mounted position.
     * @param position: camera mounted position
     * @param focusMode: see reference of E_UAVCameraFocusMode.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_GetFocusMode(E_UAVCameraFocusMode &focusMode);
    T_UAVReturnCode UAVCameraManager_GetFocusModeEx(int32_t payloadID, E_UAVCameraFocusMode &focusMode);

    /**
     * @brief Set amera focus point of the selected camera mounted position.
     * @note  Sets the lens focus target point. When the focus mode is auto, the
     * target point is the focal point. When the focus mode is manual, the target
     * point is the zoom out area if the focus assistant is enabled for the manual
     * mode.
     * @param position: camera mounted position
     * @param focusPosData: see reference of T_UAVCameraPointInScreen.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_SetFocusTarget(T_UAVCameraPointInScreen focusPosData);
    T_UAVReturnCode UAVCameraManager_SetFocusTargetEx(int32_t payloadID, T_UAVCameraPointInScreen focusPosData);

    /**
     * @brief Get amera focus point of the selected camera mounted position.
     * @param position: camera mounted position
     * @param focusPosData: see reference of T_UAVCameraPointInScreen.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_GetFocusTarget(T_UAVCameraPointInScreen &tapFocusPos);
    T_UAVReturnCode UAVCameraManager_GetFocusTargetEx(int32_t payloadID, T_UAVCameraPointInScreen &tapFocusPos);

    /**
     * @brief Start camera optical zooming of the selected camera mounted position.
     * @note Start changing the focal length of the lens in specified direction
     * with specified speed. Focal length change (zooming) will halt when maximum
     * or minimum focal lengths are reached, or UAVCameraManager_StopContinuousOpticalZoom*
     * is called.
     * @param position: camera mounted position
     * @param zoomDirection: optical zoom direction, see reference of E_UAVCameraZoomDirection.
     * @param zoomSpeed: optical zoom direction, see reference of E_UAVCameraZoomSpeed.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_StartContinuousOpticalZoom(E_UAVCameraZoomDirection zoomDirection,
                                                                E_UAVCameraZoomSpeed zoomSpeed);

    /**
     * @brief Stop camera optical zooming of the selected camera mounted position.
     * @note Called to stop focal length changing, when it currently is from
     * calling UAVCameraManager_StartContinuousOpticalZoom*.
     * @param position: camera mounted position
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_StopContinuousOpticalZoom(void);

    /**
     * @brief Set parameters for camera optical zooming of the selected camera mounted position.
     * @note In this interface, the zoom will set the zoom factor as the your
     * target value.
     * @param position: camera mounted position
     * @param zoomDirection: optical zoom direction, see reference of E_UAVCameraZoomDirection.
     * @param factor: target zoom factor.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_SetOpticalZoomParam(E_UAVCameraZoomDirection zoomDirection,
                                                         autel_f32_t factor);

    /**
     * @brief Get parameters for camera optical zooming of the selected camera mounted position.
     * @param position: camera mounted position
     * @param opticalZoomParam: see reference of T_UAVCameraManagerOpticalZoomParam.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_GetOpticalZoomParam(T_UAVCameraManagerOpticalZoomParam &opticalZoomParam);

    /**
     * @brief Set parameters for camera infrared zooming of the selected camera mounted position.
     * @param position: camera mounted position
     * @param factor: target zoom factor.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_SetInfraredZoomParam(autel_f32_t factor);

    /**
     * @brief Enable/Disable camera's tap-zoom function of the selected camera mounted position.
     * @note TapZoomAtTarget can only be called when tap-zoom is enabled.
     * @param position: camera mounted position
     * @param param: enable/disable
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_SetTapZoomEnabled(bool param);

    /**
     * @brief Get status of camera's tap-zoom function of the selected camera mounted position.
     * @param position: camera mounted position
     * @param param: enable/disable
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_GetTapZoomEnabled(bool &param);

    /**
     * @brief Set camera's tap-zoom multiplier of the selected camera mounted position.
     * @note Tap-zoom uses a multiplier to change the zoom scale when called. The
     * inal zoom scale for a TapZoom will be: Current Zoom Scale x Multiplier.
     * @param position: camera mounted position
     * @param tapZoomMultiplier: The multiplier range is [1,5]. A multiplier of 1 will not change the zoom.
     * hen the multiplier is 1, the zoom scale will not change during TapZoom.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_SetTapZoomMultiplier(uint8_t tapZoomMultiplier);

    /**
     * @brief Get camera's tap-zoom multiplier of the selected camera mounted position.
     * @param position: camera mounted position
     * @param tapZoomMultiplier: The multiplier range is [1,5]. A multiplier of 1 will not change the zoom.
     * When the multiplier is 1, the zoom scale will not change during TapZoom.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_GetTapZoomMultiplier(uint8_t &tapZoomMultiplier);

    /**
     * @brief Set camera's tap-zoom point of the selected camera mounted position.
     * @note Tap-zoom at the target. It can be called only when TapZoom is
     * enabled. When a new target is set, the gimbal will rotate and locate the
     * target in the center of the screen. At the same time, the camera will zoom
     * by multiplying the TapZoom multiplier
     * @param position: camera mounted position
     * @param tapZoomPos: see reference of T_UAVCameraPointInScreen.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_TapZoomAtTarget(T_UAVCameraPointInScreen tapZoomPos);

    /**
     * @brief Set camera focus ring value.
     * @param position: camera mounted position
     * @param value: focus ring value.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_SetFocusRingValue(uint32_t value);

    /**
     * @brief Get camera focus ring value.
     * @param position: camera mounted position
     * @param value: focus ring value to be returned.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_GetFocusRingValue(uint32_t &value);

    /**
     * @brief Get camera focus ring value range.
     * @param position: camera mounted position
     * @param rangeList: returned value of range.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_GetFocusRingRange(T_UAVCameraManagerRangeList &rangeList);

    /**
     * @brief Set camera's exposure mode of the selected camera mounted position.
     * @note  The different exposure modes define whether aperture, shutter speed,
     * ISO can be set automatically or manually. Exposure compensation can be
     * changed in all modes except manual mode where it is not settable.
     * @param position: camera mounted position
     * @param mode: see reference of E_UAVCameraManagerExposureMode.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_SetExposureMode(E_UAVCameraManagerExposureMode mode);

    /**
     * @brief Get camera's exposure mode of the selected camera mounted position.
     * @note  The different exposure modes define whether aperture, shutter speed,
     * ISO can be set automatically or manually. Exposure compensation can be
     * changed in all modes except manual mode where it is not settable.
     * @param position: camera mounted position
     * @param mode: see reference of E_UAVCameraManagerExposureMode.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_GetExposureMode(E_UAVCameraManagerExposureMode &mode);

    /**
     * @brief Set camera's iso value of the selected camera mounted position.
     * @note  ISO value can only be set when the camera exposure mode is in
     * manual mode.
     * @param position: camera mounted position
     * @param iso: see reference of E_UAVCameraManagerISO.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_SetISO(E_UAVCameraManagerISO iso);

    /**
     * @brief Get camera's iso value of the selected camera mounted position.
     * @param position: camera mounted position
     * @param iso: see reference of E_UAVCameraManagerISO.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_GetISO(E_UAVCameraManagerISO &iso);

    /**
     * @brief Set camera's aperture size value of the selected camera mounted position.
     * @note The exposure mode must be in UAV_CAMERA_MANAGER_EXPOSURE_MODE_EXPOSURE_MANUAL or
     * UAV_CAMERA_MANAGER_EXPOSURE_MODE_APERTURE_PRIORITY.
     * @param position: camera mounted position
     * @param aperture: see reference of E_UAVCameraManagerAperture.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_SetAperture(E_UAVCameraManagerAperture aperture);

    /**
     * @brief Get camera's aperture size value of the selected camera mounted position.
     * @param position: camera mounted position
     * @param aperture: see reference of E_UAVCameraManagerAperture.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_GetAperture(E_UAVCameraManagerAperture &aperture);

    /**
     * @brief Set camera's shutter value of the selected camera mounted position.
     * @note Set the camera shutter speed. The shutter speed should not be set
     * slower than the video frame rate when the camera's mode is RECORD_VIDEO.
     * For example, if the video frame rate is 30fps, the shutterSpeed must be <=
     * 1/30. Precondition: The shutter speed can be set only when the camera
     * exposure mode is UAV_CAMERA_MANAGER_EXPOSURE_MODE_EXPOSURE_MANUAL mode or
     * UAV_CAMERA_MANAGER_EXPOSURE_MODE_SHUTTER_PRIORITY
     * @param position: camera mounted position
     * @param shutterSpeed: see reference of E_UAVCameraManagerShutterSpeed.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_SetShutterSpeed(E_UAVCameraManagerShutterSpeed shutterSpeed);

    /**
     * @brief Get camera's shutter value of the selected camera mounted position.
     * @param position: camera mounted position
     * @param shutterSpeed: see reference of E_UAVCameraManagerShutterSpeed.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_GetShutterSpeed(E_UAVCameraManagerShutterSpeed &shutterSpeed);

    /**
     * @brief Set camera's EV value of the selected camera mounted position.
     * @note Set the camera's exposure compensation. In order to use this
     * function, set the camera exposure mode to shutter, program or aperture.
     * exposure mode is UAV_CAMERA_MANAGER_EXPOSURE_MODE_EXPOSURE_MANUAL mode or
     * UAV_CAMERA_MANAGER_EXPOSURE_MODE_SHUTTER_PRIORITY or
     * UAV_CAMERA_MANAGER_EXPOSURE_APERTURE_PRIORITY
     * @param position: camera mounted position
     * @param ev: see reference of E_UAVCameraManagerExposureCompensation.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_SetExposureCompensation(E_UAVCameraManagerExposureCompensation ev);

    /**
     * @brief Get camera's EV value of the selected camera mounted position.
     * @param position: camera mounted position
     * @param ev: see reference of E_UAVCameraManagerExposureCompensation.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_GetExposureCompensation(E_UAVCameraManagerExposureCompensation &ev);

    /**
     * @brief Set AE lock mode.
     * @param position: camera mounted position
     * @param enable: ture to enable, false to diasble.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_SetAELockEnabled(bool enable);

    /**
     * @brief Get AE lock mode.
     * @note Camera L1/P1 don't support this API.
     * @param position: camera mounted position
     * @param enable: result of AE lock mode.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_GetAELockEnabled(bool &enable);

    /**
     * @brief Reset camera settings.
     * @param position: camera mounted position
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_ResetCameraSettings(void);

    /**
     * @brief Start to take video of the selected camera mounted position.
     * @note Camera must be in RECORD_VIDEO mode. For thermal imaging camera,
     * user can take Single photo when recording video.
     * @param position: camera mounted position
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_StartRecordVideo(void);

    /**
     * @brief Stop to take video of the selected camera mounted position.
     * @note Precondition: The camera is recording currently.
     * @param position: camera mounted position
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_StopRecordVideo(void);

    /**
     * @brief Get camera recording state.
     * @param position: camera mounted position
     * @param recordingState: result of getting, see E_UAVCameraManagerRecordingState.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_GetRecordingState(E_UAVCameraManagerRecordingState &recordingState);

    /**
     * @brief Get camera recording time.
     * @note L1/P1 don not support this API.
     * @param position: camera mounted position
     * @param recordingTime: result of getting, unit is seconds.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_GetRecordingTime(uint16_t &recordingTime);

    /**
     * @brief Get camera stream source range.
     * @param position: camera mounted position
     * @param rangeList: pointer to the result.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_GetStreamSourceRange(T_UAVCameraManagerRangeList &rangeList);

    /**
     * @brief Choose camera stream source.
     * @param position: camera mounted position
     * @param streamSource: stream source to be chose.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_SetStreamSource(E_UAVCameraManagerStreamSource streamSource);

    /**
     * @brief Choose camera stream source.
     * @param position: camera mounted position
     * @param streamSource: stream source to be chose.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_GetStreamSource(E_UAVCameraManagerStreamSource &streamSource);

    /**
     * @brief Get photo storage format range.
     * @param position: camera mounted position
     * @param rangeList: range list returned value
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_GetPhotoFormatStorageRange(T_UAVCameraManagerRangeList &rangeList);

    /**
     * @brief Set photo storage format.
     * @param position: camera mounted position
     * @param format: storage format.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_SetPhotoFormat(E_UAVCameraManagerPhotoStorageFormat format);

    /**
     * @brief Get photo storage format.
     * @param position: camera mounted position
     * @param format: returned value of storage format.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_GetPhotoFormat(E_UAVCameraManagerPhotoStorageFormat &format);

    /**
     * @brief Get video storage format range.
     * @param position: camera mounted position
     * @param rangeList: range list returned value
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_GetVideoFormatRange(T_UAVCameraManagerRangeList &rangeList);

    /**
     * @brief Set video storage format.
     * @param position: camera mounted position
     * @param format: storage format.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_SetVideoStorageFormat(E_UAVCameraManagerVideoStorageFormat format);

    /**
     * @brief Get video storage format.
     * @param position: camera mounted position
     * @param format: returned value of storage format.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_GetVideoFormat(E_UAVCameraManagerVideoStorageFormat &format);

    /**
     * @brief Get photo ratio range
     * @param position: camera mounted position
     * @param rangeList: range list returned value
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_GetPhotoRatioRange(T_UAVCameraManagerRangeList &rangeList);

    /**
     * @brief Set camera photo ratio
     * @param position: camera mounted position
     * @param photoRatio: ratio to be set
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_SetPhotoRatio(E_UAVCameraManagerPhotoRatio photoRatio);

    /**
     * @brief Get camera photo ratio
     * @param position: camera mounted position
     * @param photoRatio: returned value of photo ratio
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_GetPhotoRatio(E_UAVCameraManagerPhotoRatio &photoRatio);

    /**
     * @brief Get camera video resolution and frame rate
     * @param position: camera mounted position
     * @param photoRatio: returned value of video resolution and frame rate
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_GetVideoResolutionFrameRate(T_UAVCameraManagerVideoFormat &videoParam);

    /**
     * @brief Get night scene mode range.
     * @param position: camera mounted position.
     * @param tempRange: returned valued of night scene mode range.
     * @return Execution result.
     */
    bool UAVCameraManager_GetNightSceneModeRange(T_UAVCameraManagerRangeList &rangeList);

    /**
     * @brief Set night scene mode.
     * @note Make sure that stream source is zoom or wide camera.
     * @param position: camera mounted position
     * @param nightSceneMode: night scene mode.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_SetNightSceneMode(E_UAVCameraManagerNightSceneMode nightSceneMode);

    /**
     * @brief Get night scene mode.
     * @param position: camera mounted position
     * @param nightSceneMode: pointer to night scene mode.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_GetNightSceneMode(E_UAVCameraManagerNightSceneMode &nightSceneMode);

    /**
     * @brief Get range of stream source(s) can be storaged when capturing or recording.
     * @param position: camera mounted position.
     * @param rangeList: returned value of range, in member streamStorage.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_GetStreamStorageRange(T_UAVCameraManagerRangeList &rangeList);

    /**
     * @brief Select capture or recording stream(s) to store.
     * @note Precondition: set camera's work corresponding to streamType
     * @param position: camera mounted position.
     * @param streamType: capture mode or recording mode.
     * @param streamStorageList: Pointer to the struct that contains stream list.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_SetCaptureRecordingStreams(E_UAVCameraManagerCaptureOrRecording streamType,
                                                                T_UAVCameraManagerStreamList &streamStorageList);

    /**
     * @brief Get the stream(s) of capture or recording mode to be storaged.
     * @param position: camera mounted position.
     * @param streamType: capture mode or recording mode.
     * @param streamSourceList: the real return value.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_GetCaptureRecordingStreams(E_UAVCameraManagerCaptureOrRecording streamType,
                                                                T_UAVCameraManagerStreamList &streamStorageList);

    /**
     * @brief Turn on/off synchronized split screen zoom function.
     * @param position: camera mounted position.
     * @param enable: set true to turn on, false to turn off.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_SetSynchronizedSplitScreenZoomEnabled(bool enable);

    /**
     * @brief Set suffix name of directory or file.
     * @note For file name, the setting is only valid once.
     * @param position: camera mounted position.
     * @param nameType: see E_UAVCameraManagerExpandNameType, select to set name of directory or file.
     * @param nameSize: size of name string, must be in rang of 1 ~ 239.
     * @param nameStr: Content of custom suffix name.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_SetCustomExpandName(E_UAVCameraManagerExpandNameType nameType,
                                                         const uint8_t *nameStr,
                                                         uint32_t nameSize);

    /**
     * @brief Get custom past of lastest directory or file name
     * @param position: camera mounted position
     * @param nameType: to choose directory or file to get custom name
     * @param nameStr: name string buffer
     * @param nameSize: its tell the max size of nameStr and changed to to the actually size of
     * name string when function finished.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_GetCustomExpandName(E_UAVCameraManagerExpandNameType nameType,
                                                         uint8_t *nameStr,
                                                         uint32_t *nameSize);

    /**
     * @brief Regsiter selected camera download file data callback,
     * @param position: the mount position of the camera
     * @param callback: the download file data callback
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_RegDownloadFileDataCallback(UAVCameraManagerDownloadFileDataCallback callback);

    /**
     * @brief Download selected camera media file by file index.
     * @note Only support download one file at the same time, the new file download need wait for the previous file
     * download finished.The interface is a synchronous interface, which occupies more CPU resources when using it.
     * If the download file fails, the timeout time is 3S.
     * @param position: the mount position of the camera
     * @param fileIndex: the index of the camera media file
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_DownloadFileByIndex(uint32_t fileIndex);

    /**
     * @brief Before downloading media file(s), downloader rights should be obtained.
     * @param position: the mount position of the camera
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_ObtainDownloaderRights(void);

    /**
     * @brief After downloading media file(s), downloader rights should be released
     * @note If not release rights, the pilot app is probably can't access album of camera.
     * @param position: the mount position of the camera
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_ReleaseDownloaderRights(void);

    /**
     * @brief Delete selected camera media file by file index.
     * @param position: the mount position of the camera
     * @param fileIndex: the index of the camera media file
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_DeleteFileByIndex(uint32_t fileIndex);

    /**
     * @brief Format SD card.
     * @param position: the mount position of the camera
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_FormatStorage(void);

    /**
     * @brief Get storage info of SD card.
     * @note Camera L1/P1 don't support this API.
     * @param position: the mount position of the camera
     * @param storageInfo: result of getting, storage info of SD card.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_GetStorageInfo(T_UAVCameraManagerStorageInfo &storageInfo);

    /**
     * @brief Get the camera laser ranging info of the selected camera mounted position.
     * @note Maximum data update frequency: 5Hz.
     * @param position: the mount position of the camera
     * @param laserRangingInfo: the pointer to the camera laser ranging info
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_GetLaserRangingInfo(T_UAVCameraManagerLaserRangingInfo &laserRangingInfo);

    /**
     * @brief Set point thermometry coordinates of the selected camera mounted position.
     * @param position: camera mounted position
     * @param pointCoordinate: point thermometry coordinates
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_SetPointThermometryCoordinate(T_UAVCameraManagerPointThermometryCoordinate pointCoordinate);

    /**
     * @brief Get point thermometry result.
     * @note Before get point thermometry data from camera, UAVCameraManager_SetPointThermometryCoordinate()
     * function has to be called.
     * @param position: camera mounted position
     * @param pointThermometryData: point thermometry result
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_GetPointThermometryData(T_UAVCameraManagerPointThermometryData *pointThermometryData);

    /**
     * @brief Set area thermometry coordinates of the selected camera mounted position.
     * @param position: camera mounted position
     * @param areaCoordinate: area thermometry coordinates
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_SetAreaThermometryCoordinate(T_UAVCameraManagerAreaThermometryCoordinate areaCoordinate);

    /**
     * @brief Get area thermometry result.
     * @note Before get area thermometry data from camera, UAVCameraManager_SetAreaThermometryCoordinate()
     * function has to be called.
     * @param position: camera mounted position
     * @param areaThermometryData: area thermometry result
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_GetAreaThermometryData(T_UAVCameraManagerAreaThermometryData &areaThermometryData);

    /**
     * @brief Set FFC mode.
     * @param position: camera mounted position.
     * @param ffcMode: mode to be set.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_SetFfcMode(E_UAVCameraManagerFfcMode ffcMode);

    /**
     * @brief Trigger FFC one time.
     * @param position: camera mounted position.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_TriggerFfc(void);

    /**
     * @brief Set infrared camera gaim mode.
     * @param position: camera mounted position.
     * @param gainMode: gain mode to set.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_SetInfraredCameraGainMode(E_UAVCameraManagerIrGainMode gainMode);

    /**
     * @brief Get temprature range of infrared camera.
     * @param position: camera mounted position.
     * @param tempRange: returned valued of temperature range.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_GetInfraredCameraGainModeTemperatureRange(T_UAVCameraManagerIrTempMeterRange &tempRange);

    /**
     * @brief Set camera metering mode.
     * @param position: camera mounted position
     * @param meteringMode: metering mode
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_SetMeteringMode(E_UAVCameraManagerMeteringMode meteringMode);

    /**
     * @brief Get camera metering mode.
     * @param position: camera mounted position
     * @param meteringMode: pointer to returned value of metering mode
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_GetMeteringMode(E_UAVCameraManagerMeteringMode &meteringMode);

    /**
     * @brief Get range of metering point.
     * @param position: camera mounted position
     * @param hrzNum: returned value, horizontal range.
     * @param vtcNum: returned value, vertical range.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_GetMeteringPointRegionRange(uint8_t &hrzNum, uint8_t &vtcNum);
    /**
     * @brief Set metrting point.
     * @param position: camera mounted position
     * @param x: Horizontal coordinate value, should be no greater than hrzNum - 1.
     * @param y: Horizontal coordinate value, should be no greater than vtcNum - 1.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_SetMeteringPoint(T_UAVCameraPointInScreen meteringPosData);

    /**
     * @brief Get camera metering mode.
     * @param position: camera mounted position
     * @param x: returned valued, current metering point in horizontal coordinate.
     * @param y: returned valued, current metering point in vertical coordinate.
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_GetMeteringPoint(T_UAVCameraPointInScreen &meteringPosData);

    /**
     * @brief Start to record point cloud of the selected camera mounted position.
     * @param position: camera mounted position
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_StartRecordPointCloud(void);

    /**
     * @brief Stop to record point cloud of the selected camera mounted position.
     * @note Precondition: The camera is recording currently.
     * @param position: camera mounted position
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_StopRecordPointCloud(void);

    /**
     * @brief Downloads a list of media files from the selected camera.
     * @note This synchronous interface may lead to higher CPU usage.
     * Times out after 3 seconds if the download fails.
     * @param position: the mount position of the camera
     * @param fileList: the pointer to the downloaded camera file list
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_DownloadFileList(T_UAVCameraManagerFileList *fileList);

    /**
     * @brief Download selected camera media file list by slices.
     * @note This synchronous interface may lead to higher CPU usage.
     * Times out after 3 seconds if the download fails.
     * @param position: the mount position of the camera
     * @param sliceConfig: the slices config for downloading file list
     * @param fileList: the pointer to the downloaded camera file list
     * @return Execution result.
     */
    T_UAVReturnCode UAVCameraManager_DownloadFileListBySlices(
        T_UAVCameraManagerSliceConfig sliceConfig,
        T_UAVCameraManagerFileList *fileList);

    T_UAVReturnCode UAVCameraManager_SetDownloadFileDirPath(const char* strFilePath);

#ifdef __cplusplus
}
#endif

#endif // UAV_CAMERA_MANAGER_H
/************************ (C) COPYRIGHT UAV Innovations *******END OF FILE******/