承接 volantus/msp-protocol 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

volantus/msp-protocol

Composer 安装命令:

composer require volantus/msp-protocol

包简介

PHP implementation of the SMP protocol + serial communication adapter

README 文档

README

A PHP implementation of the MSP (serial multiwii) protocol

Usage

Complete device communication is handled by CommunicationService, which gets a SerialInterface injected.

    use Volantus\MSPProtocol\Src\Protocol\CommunicationService;
    use Volantus\MSPProtocol\Src\Protocol\Request\MotorStatus as MotorStatusRequest;
    use Volantus\MSPProtocol\Src\Protocol\Response\MotorStatus as MotorStatusResponse;
    use Volantus\MSPProtocol\Src\Serial\SerialInterface;
    
    $serialInterface = new SerialInterface('/dev/ttyUSB0', 115200);
    $service = new CommunicationService($serialInterface);
    
    /** @var MotorStatusResponse $response */
    $response = $service->send(new MotorStatusRequest());
    
    // Status of the first motor (Value between 1000 and 2000)
    $response->getStatuses()[0];

Requests/Response

The current request/response implementation set is not complete yet. Especially custom packages from Clean-/Betaflight are missing. Contributors are highly welcome.

All request and responses are encapsulated into objects, which includes interpretation logic about their respective payload structure.

  • Request namespace: Volantus\MSPProtocol\Src\Protocol\Request
  • Response namespace: Volantus\MSPProtocol\Src\Protocol\Response

For a complete list of available (orginal MultiWii) packages please consult the official documentation.

Contribution

Contributors a highly welcome. Please respect the following basic rules:

Code style

The project follows the ZEND code style with a extended flexible line size.

Tests

Please create/extend/modify unit and integration tests. System dependencies should always be mocked.

Workflow

  1. Fork the repository
  2. Create feature branch from master
  3. Create pull request

统计信息

  • 总下载量: 64
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GNUv3
  • 更新时间: 2017-05-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固