/** * ScaledPressure constructor. * @param $entry */ public function __construct($entry) { parent::__construct($entry); $this->press_abs = $this->float(4, 7); $this->press_diff = $this->float(8, 11); $this->temperature = $this->int16_t(12, 13) / 100; }
/** * Attitude constructor. * @param $entry */ public function __construct($entry) { parent::__construct($entry); $this->roll = $this->float(0, 3); $this->pitch = $this->float(4, 7); $this->yaw = $this->float(8, 11); $this->rollspeet = $this->float(12, 15); $this->pitchspeed = $this->float(16, 19); $this->yawspeed = $this->float(20, 23); }
/** * GlobalPositionInt constructor. * @param $entry */ public function __construct($entry) { parent::__construct($entry); $this->lat = $this->int32_t(4, 7) / 10000000; $this->lon = $this->int32_t(8, 11) / 10000000; $this->alt = $this->int32_t(12, 15) / 1000; $this->relative_alt = $this->int32_t(16, 19) / 1000; $this->vx = $this->int16_t(20, 21) / 100; $this->vy = $this->int16_t(22, 23) / 100; $this->vz = $this->int16_t(24, 25) / 100; $this->hdg = $this->uint16_t(26, 27) / 100; }
/** * RcChannelsRaw constructor. * @param $entry */ public function __construct($entry) { parent::__construct($entry); $this->chan1_raw = $this->uint16_t(4, 5); $this->chan2_raw = $this->uint16_t(6, 7); $this->chan3_raw = $this->uint16_t(8, 9); $this->chan4_raw = $this->uint16_t(10, 11); $this->chan5_raw = $this->uint16_t(12, 13); $this->chan6_raw = $this->uint16_t(14, 15); $this->chan7_raw = $this->uint16_t(16, 17); $this->chan8_raw = $this->uint16_t(18, 19); $this->port = $this->uint8_t(20); $this->rssi = $this->uint8_t(21); }