Skip to content

Arduino MSP v2 (MultiWii Serial Protocol) library

License

Notifications You must be signed in to change notification settings

QFFS/MSP-Arduino

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arduino library for MSPv2 (MultiWii Serial Protocol)

It's a fork of https://github.com/fdivitto/MSP

It simply uses bigger integers for message ID and payload size and includes the new tag and new checksum algorithm.

Known Issues:

This is a simple library to send requests, commands or just wait messages from a MultiWii compatible flight controller (cleanflight, betaflight, etc...), specifically designed to work better with INAV.

MSP library can be attached to any serial port (hardware or software).

Not all MSP messages and commands are implemented. However new messages can be simply added.

Example to get RC channels:

MSP msp;

void setup()
{
  Serial.begin(115200);
  msp.begin(Serial);
}

void loop()
{
  msp_rc_t rc;
  if (msp.request(MSP_RC, &rc, sizeof(rc))) {
  	
    uint16_t roll     = rc.channelValue[0];
    uint16_t pitch    = rc.channelValue[1];
    uint16_t yaw      = rc.channelValue[2];
    uint16_t throttle = rc.channelValue[3];
    
  }
}

About

Arduino MSP v2 (MultiWii Serial Protocol) library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%