28 #ifndef PSDK_CMDSET_MSG_PUSH_H 29 #define PSDK_CMDSET_MSG_PUSH_H 36 #include <psdk_typedef.h> 57 #define PSDK_UAV_TYPE_UNKNOWN 0 58 #define PSDK_UAV_TYPE_M200 1 59 #define PSDK_UAV_TYPE_M210 2 60 #define PSDK_UAV_TYPE_M210RTK 3 61 #define PSDK_UAV_TYPE_M600 4 62 #define PSDK_UAV_TYPE_M600PRO 5 63 #define PSDK_UAV_TYPE_M200_V2 6 64 #define PSDK_UAV_TYPE_M210_V2 7 65 #define PSDK_UAV_TYPE_M210RTK_V2 8 66 #define PSDK_UAV_TYPE_M300_RTK 9 76 #define PSDK_BASE_BAND_STATE_LINK 1 77 #define PSDK_BASE_BAND_STATE_UNLINK 0 87 #define PSDK_BATTERY_POWER_ON 0 88 #define PSDK_BATTERY_POWER_OFF 1 98 #define PSDK_PAYLOAD_POWER_OFF_NOT_READY 0 99 #define PSDK_PAYLOAD_POWER_OFF_READY 1 109 #define PSDK_MSG_PUSH_LINK_STATE_LINK 1 110 #define PSDK_MSG_PUSH_LINK_STATE_UNLINK 0 120 #define PSDK_MSG_PUSH_LINKBUSY_STATE_BUSY 1 121 #define PSDK_MSG_PUSH_LINKBUSY_STATE_NOTBUSY 0 131 #define PSDK_APP_CONNECTION_STATE_LINK 1 132 #define PSDK_APP_CONNECTION_STATE_UNLINK 0 142 #define PSDK_GPS_STATE_NO_SIGNAL 0 143 #define PSDK_GPS_STATE_WEAK_SIGNAL 1 144 #define PSDK_GPS_STATE_MEDIUM_SIGNAL 2 145 #define PSDK_GPS_STATE_GOOD_SIGNAL 3 155 #define PSDK_COMPASS_STATE_NORMAL 0 156 #define PSDK_COMPASS_STATE_ABNORMAL 1 166 #define PSDK_MOTOR_STATE_ROTATING 1 167 #define PSDK_MOTOR_STATE_UNROTATING 0 177 #define PSDK_LAND_STATE_UNKNOWN 0 178 #define PSDK_LAND_STATE_LANDED 1 179 #define PSDK_LAND_STATE_UNLANDED 2 200 #define IS_PSDK_UAV_TYPE(UAV_TYPE) (((UAV_TYPE) == PSDK_UAV_TYPE_UNKNOWN) || \ 201 ((UAV_TYPE) == PSDK_UAV_TYPE_M200) || \ 202 ((UAV_TYPE) == PSDK_UAV_TYPE_M210) || \ 203 ((UAV_TYPE) == PSDK_UAV_TYPE_M210RTK) || \ 204 ((UAV_TYPE) == PSDK_UAV_TYPE_M600) || \ 205 ((UAV_TYPE) == PSDK_UAV_TYPE_M600PRO)) || \ 206 ((UAV_TYPE) == PSDK_UAV_TYPE_M200_V2) || \ 207 ((UAV_TYPE) == PSDK_UAV_TYPE_M210_V2) || \ 208 ((UAV_TYPE) == PSDK_UAV_TYPE_M210RTK_V2)) 219 #define IS_PSDK_BASE_BAND_STATE(STATE) (((STATE) == PSDK_BASE_BAND_STATE_LINK) || \ 220 ((STATE) == PSDK_BASE_BAND_STATE_UNLINK)) 231 #define IS_PSDK_BATTERY_POWER_STATE(STATE) (((STATE) == PSDK_BATTERY_POWER_ON) || \ 232 ((STATE) == PSDK_BATTERY_POWER_OFF)) 243 #define IS_PSDK_PAYLOAD_POWER_OFF_READY_STATE(STATE) (((STATE) == PSDK_PAYLOAD_POWER_OFF_NOT_READY) || \ 244 ((STATE) == PSDK_PAYLOAD_POWER_OFF_READY)) 255 #define IS_PSDK_MSGPUSH_LINK_STATE(STATE) (((STATE) == PSDK_MSG_PUSH_LINK_STATE_LINK) || \ 256 ((STATE) == PSDK_MSG_PUSH_LINK_STATE_UNLINK)) 267 #define IS_PSDK_MSGPUSH_LINKBUSY_STATE(STATE) (((STATE) == PSDK_MSG_PUSH_LINKBUSY_STATE_BUSY) || \ 268 ((STATE) == PSDK_MSG_PUSH_LINKBUSY_STATE_NOTBUSY)) 279 #define IS_PSDK_APP_CONNECTION_STATE(STATE) (((STATE) == PSDK_APP_CONNECTION_STATE_LINK) || \ 280 ((STATE) == PSDK_APP_CONNECTION_STATE_UNLINK)) 291 #define IS_PSDK_GPS_STATE(STATE) (((STATE) == PSDK_GPS_STATE_NO_SIGNAL) || \ 292 ((STATE) == PSDK_GPS_STATE_WEAK_SIGNAL) || \ 293 ((STATE) == PSDK_GPS_STATE_MEDIUM_SIGNAL) || \ 294 ((STATE) == PSDK_GPS_STATE_GOOD_SIGNAL) 305 #define IS_PSDK_COMPASS_STATE(STATE) (((STATE) == PSDK_COMPASS_STATE_NORMAL) || \ 306 ((STATE) == PSDK_COMPASS_STATE_ABNORMAL)) 317 #define IS_PSDK_MOTOR_STATE(STATE) (((STATE) == PSDK_MOTOR_STATE_ROTATING) || \ 318 ((STATE) == PSDK_MOTOR_STATE_UNROTATING)) 329 #define IS_PSDK_LAND_STATE(STATE) (((STATE) == PSDK_LAND_STATE_UNKNOWN) || \ 330 ((STATE) == PSDK_LAND_STATE_LANDED) || \ 331 ((STATE) == PSDK_LAND_STATE_UNLANDED)) 412 uint8_t linkStateReserveBit :4;
425 uint8_t overrunReserveBit : 5;
435 uint8_t overrunReserveBit2 : 7;
555 uint8_t reserved : 4;
637 #endif //PSDK_CMDSET_MSG_PUSH_H uint8_t day
Definition: psdk_cmdset_msg_push.h:569
psdk_f32_t vel_D
Definition: psdk_cmdset_msg_push.h:535
psdk_f32_t vel_E
Definition: psdk_cmdset_msg_push.h:534
uint16_t mainPayloadFocalLength
Definition: psdk_cmdset_msg_push.h:603
uint16_t year
Definition: psdk_cmdset_msg_push.h:567
uint8_t hour
Definition: psdk_cmdset_msg_push.h:570
uint8_t ackCode
Definition: psdk_cmdset_msg_push.h:467
uint8_t baseBandState
Definition: psdk_cmdset_msg_push.h:399
uint8_t compassState
Definition: psdk_cmdset_msg_push.h:549
uint16_t totalNumUsed
Definition: psdk_cmdset_msg_push.h:521
uint8_t AppLinkState
Definition: psdk_cmdset_msg_push.h:410
The structure defining APP Time and Date Push contents.
Definition: psdk_cmdset_msg_push.h:566
uint8_t gpsState
Definition: psdk_cmdset_msg_push.h:483
uint8_t month
Definition: psdk_cmdset_msg_push.h:581
uint16_t year
Definition: psdk_cmdset_msg_push.h:580
uint8_t day
Definition: psdk_cmdset_msg_push.h:582
uint8_t downVideoLinkState
Definition: psdk_cmdset_msg_push.h:406
int32_t posLongitude
Definition: psdk_cmdset_msg_push.h:504
uint32_t glonassUsed
Definition: psdk_cmdset_msg_push.h:520
uint32_t osdkUpChannBw
Definition: psdk_cmdset_msg_push.h:436
uint8_t second
Definition: psdk_cmdset_msg_push.h:572
The structure defining UTC timestamp Push contents.
Definition: psdk_cmdset_msg_push.h:579
uint8_t pos_health
Definition: psdk_cmdset_msg_push.h:537
uint8_t minute
Definition: psdk_cmdset_msg_push.h:584
uint8_t motorState
Definition: psdk_cmdset_msg_push.h:551
uint32_t gpsUsed
Definition: psdk_cmdset_msg_push.h:519
uint16_t flightTime
Definition: psdk_cmdset_msg_push.h:557
The structure defining Baro Height Data Push contents.
Definition: psdk_cmdset_msg_push.h:491
uint32_t microsecond
Definition: psdk_cmdset_msg_push.h:586
uint8_t powerOffReady
Definition: psdk_cmdset_msg_push.h:469
int32_t posHeight
Definition: psdk_cmdset_msg_push.h:506
psdk_f32_t velocityDownward
Definition: psdk_cmdset_msg_push.h:509
uint32_t downComPortBandWidth
Definition: psdk_cmdset_msg_push.h:428
psdk_f64_t lat_p
Definition: psdk_cmdset_msg_push.h:531
psdk_f32_t velocityEast
Definition: psdk_cmdset_msg_push.h:508
uint8_t second
Definition: psdk_cmdset_msg_push.h:585
uint32_t downDataStreamBandWidth
Definition: psdk_cmdset_msg_push.h:430
The structure defining UAV Attitude Push contents.
Definition: psdk_cmdset_msg_push.h:443
uint8_t yaw_health
Definition: psdk_cmdset_msg_push.h:539
uint8_t landState
Definition: psdk_cmdset_msg_push.h:553
uint32_t maxOsdkUpChannBw
Definition: psdk_cmdset_msg_push.h:432
The structure defining Other Payload Focal Length Push contents.
Definition: psdk_cmdset_msg_push.h:602
uint8_t mainPayloadType
Definition: psdk_cmdset_msg_push.h:594
psdk_f32_t sacc
Definition: psdk_cmdset_msg_push.h:518
uint32_t maxDownComPortBandWidth
Definition: psdk_cmdset_msg_push.h:415
psdk_f32_t velocityNorth
Definition: psdk_cmdset_msg_push.h:507
The structure defining Data Transmission Bandwidth Push contents.
Definition: psdk_cmdset_msg_push.h:398
uint8_t hour
Definition: psdk_cmdset_msg_push.h:583
uint8_t isOsdkUpChannOverrun
Definition: psdk_cmdset_msg_push.h:433
uint8_t isDownComPortOverrun
Definition: psdk_cmdset_msg_push.h:421
uint32_t upComPortBandWidth
Definition: psdk_cmdset_msg_push.h:427
psdk_f32_t vel_N
Definition: psdk_cmdset_msg_push.h:533
psdk_f64_t longitude
Definition: psdk_cmdset_msg_push.h:479
psdk_f32_t vacc
Definition: psdk_cmdset_msg_push.h:515
int16_t refHeight
Definition: psdk_cmdset_msg_push.h:481
uint8_t minute
Definition: psdk_cmdset_msg_push.h:571
psdk_f32_t pdop
Definition: psdk_cmdset_msg_push.h:512
The structure defining Battery Information Push contents.
Definition: psdk_cmdset_msg_push.h:455
uint8_t sateNum
Definition: psdk_cmdset_msg_push.h:482
uint32_t date
Definition: psdk_cmdset_msg_push.h:500
The structure defining GPS Raw Data Push contents.
Definition: psdk_cmdset_msg_push.h:499
uint32_t maxDownNetPortBandWidth
Definition: psdk_cmdset_msg_push.h:416
uint32_t time
Definition: psdk_cmdset_msg_push.h:502
int32_t posLatitude
Definition: psdk_cmdset_msg_push.h:505
psdk_f32_t hmsl_p
Definition: psdk_cmdset_msg_push.h:532
psdk_f32_t hdop
Definition: psdk_cmdset_msg_push.h:510
psdk_f32_t baroHeight
Definition: psdk_cmdset_msg_push.h:492
The structure defining GPS Information Push contents.
Definition: psdk_cmdset_msg_push.h:478
uint32_t maxUpComPortBandWidth
Definition: psdk_cmdset_msg_push.h:414
uint32_t downVideoStreamBandWidth
Definition: psdk_cmdset_msg_push.h:429
uint8_t remoteControlLinkState
Definition: psdk_cmdset_msg_push.h:404
uint8_t powerOffNotice
Definition: psdk_cmdset_msg_push.h:457
The structure defining RTK Raw Data Push contents.
Definition: psdk_cmdset_msg_push.h:529
The structure defining UAV State Push contents.
Definition: psdk_cmdset_msg_push.h:547
uint8_t maxBandWidth
Definition: psdk_cmdset_msg_push.h:401
psdk_f32_t gpsFixState
Definition: psdk_cmdset_msg_push.h:514
uint8_t capacityPercent
Definition: psdk_cmdset_msg_push.h:456
The structure defining Other Payload Type Push contents.
Definition: psdk_cmdset_msg_push.h:593
int16_t yaw
Definition: psdk_cmdset_msg_push.h:536
psdk_f32_t hacc
Definition: psdk_cmdset_msg_push.h:516
uint8_t isUpComPortOverrun
Definition: psdk_cmdset_msg_push.h:419
psdk_f64_t lon_p
Definition: psdk_cmdset_msg_push.h:530
uint8_t uavType
Definition: psdk_cmdset_msg_push.h:558
psdk_f64_t latitude
Definition: psdk_cmdset_msg_push.h:480
uint16_t gpsState
Definition: psdk_cmdset_msg_push.h:522
The structure defining ack of Battery Information Push Command.
Definition: psdk_cmdset_msg_push.h:466
uint8_t downDataCmdLinkState
Definition: psdk_cmdset_msg_push.h:408
uint8_t month
Definition: psdk_cmdset_msg_push.h:568
uint8_t isDownNetPortOverrun
Definition: psdk_cmdset_msg_push.h:423