111111#define MSP_MODE_TURNASSIST 27
112112#define MSP_MODE_NAVLAUNCH 28
113113#define MSP_MODE_AUTOTRIM 29
114+ #define MSP_CMD_DISPLAYPORT 182
114115
115116struct msp_esc_sensor_data_t {
116117 uint8_t motor_count ;
@@ -288,6 +289,25 @@ struct msp_attitude_t {
288289 int16_t yaw ;
289290} __attribute__((packed ));
290291
292+ struct msp_rendor_pitch_t {
293+ uint8_t subCommand = 0x03 ; // 0x03 subcommand write string. fixed
294+ uint8_t screenYPosition ;
295+ uint8_t screenXPosition ;
296+ uint8_t iconAttrs = 0x00 ;
297+ uint8_t iconIndex = 0x15 ; //PITCH icon
298+
299+ char str [6 ]; // -00.0
300+ } __attribute__((packed ));
301+
302+ struct msp_rendor_roll_t {
303+ uint8_t subCommand = 0x03 ; // 0x03 subcommand write string. fixed
304+ uint8_t screenYPosition ;
305+ uint8_t screenXPosition ;
306+ uint8_t iconAttrs = 0x00 ;
307+ uint8_t iconIndex = 0x14 ; //ROLL icon
308+
309+ char str [6 ]; // -00.0
310+ } __attribute__((packed ));
291311
292312// MSP_ALTITUDE reply
293313struct msp_altitude_t {
@@ -297,6 +317,17 @@ struct msp_altitude_t {
297317} __attribute__((packed ));
298318
299319
320+ struct msp_rendor_altitude_t {
321+ uint8_t subCommand = 0x03 ; // 0x03 subcommand write string. fixed
322+ uint8_t screenYPosition ;
323+ uint8_t screenXPosition ;
324+ uint8_t iconAttrs = 0x00 ;
325+ uint8_t iconIndex = 0x7F ; //ALT icon
326+
327+ char str [8 ]; // -0000.0 // 9999.9 meter
328+ } __attribute__((packed ));
329+
330+
300331// MSP_SONAR_ALTITUDE reply
301332struct msp_sonar_altitude_t {
302333 int32_t altitude ;
@@ -311,6 +342,16 @@ struct msp_analog_t {
311342 int16_t amperage ; // send amperage in 0.01 A steps, range is -320A to 320A
312343} __attribute__((packed ));
313344
345+ struct msp_rendor_rssi_t {
346+ uint8_t subCommand = 0x03 ; // 0x03 subcommand write string. fixed
347+ uint8_t screenYPosition ;
348+ uint8_t screenXPosition ;
349+ uint8_t iconAttrs = 0x00 ;
350+ uint8_t iconIndex = 0x01 ; //RSSI icon
351+
352+ char str [4 ]; // 100%
353+ } __attribute__((packed ));
354+
314355
315356// MSP_ARMING_CONFIG reply
316357struct msp_arming_config_t {
@@ -392,6 +433,38 @@ struct msp_raw_gps_t {
392433 uint16_t hdop ;
393434} __attribute__((packed ));
394435
436+ struct msp_rendor_latitude_t {
437+ uint8_t subCommand = 0x03 ; // 0x03 subcommand write string. fixed
438+ uint8_t screenYPosition ;
439+ uint8_t screenXPosition ;
440+ uint8_t iconAttrs = 0x00 ;
441+ uint8_t iconIndex = 0x89 ; //LAT icon
442+
443+ char str [11 ]; // -00.0000000
444+ } __attribute__((packed ));
445+
446+
447+ struct msp_rendor_longitude_t {
448+ uint8_t subCommand = 0x03 ; // 0x03 subcommand write string. fixed
449+ uint8_t screenYPosition ;
450+ uint8_t screenXPosition ;
451+ uint8_t iconAttrs = 0x00 ;
452+ uint8_t iconIndex = 0x98 ; //LON icon
453+
454+ char str [12 ]; // -000.0000000
455+ } __attribute__((packed ));
456+
457+ struct msp_rendor_satellites_used_t {
458+ uint8_t subCommand = 0x03 ; // 0x03 subcommand write string. fixed
459+ uint8_t screenYPosition ;
460+ uint8_t screenXPosition ;
461+ uint8_t iconAttrs = 0x00 ;
462+ uint8_t iconIndex = 0x1E ; //satellites icon
463+ uint8_t iconIndex2 = 0x1F ; //satellites icon
464+
465+ char str [2 ]; // 99
466+ } __attribute__((packed ));
467+
395468
396469// MSP_COMP_GPS reply
397470struct msp_comp_gps_t {
@@ -400,6 +473,16 @@ struct msp_comp_gps_t {
400473 uint8_t heartbeat ; // toggles 0 and 1 for each change
401474} __attribute__((packed ));
402475
476+ struct msp_rendor_distanceToHome_t {
477+ uint8_t subCommand = 0x03 ; // 0x03 subcommand write string. fixed
478+ uint8_t screenYPosition ;
479+ uint8_t screenXPosition ;
480+ uint8_t iconAttrs = 0x00 ; //
481+ uint8_t iconIndex = 0x71 ; //distanceToHome icon
482+
483+ char str [6 ]; // 65536
484+ } __attribute__((packed ));
485+
403486
404487// values for msp_nav_status_t.mode
405488#define MSP_NAV_STATUS_MODE_NONE 0
@@ -788,6 +871,15 @@ struct msp_battery_state_t {
788871 uint16_t batteryVoltage ;
789872} __attribute__((packed ));
790873
874+ struct msp_rendor_battery_state_t {
875+ uint8_t subCommand ; // 0x03 write string. fixed
876+ uint8_t screenYPosition ;
877+ uint8_t screenXPosition ;
878+ uint8_t iconAttrs ;
879+ uint8_t iconIndex ;
880+ char str [5 ];
881+ } __attribute__((packed ));
882+
791883// MSP_STATUS reply customized for BF/DJI
792884struct msp_status_BF_t {
793885 uint16_t task_delta_time ;
0 commit comments