Browse Source

Decouple BinComm from FastSerial, now that we can use Stream instead.


			
			
				mission-4.1.18
			
			
		
DrZiplok@gmail.com 15 years ago
parent
commit
ed24b47fb3
  1. 2
      libraries/APM_BinComm/APM_BinComm.cpp
  2. 7
      libraries/APM_BinComm/APM_BinComm.h

2
libraries/APM_BinComm/APM_BinComm.cpp

@ -45,7 +45,7 @@ @@ -45,7 +45,7 @@
#define DEC_MESSAGE_TIMEOUT 100
BinComm::BinComm(const BinComm::MessageHandler *handlerTable,
FastSerial *interface) :
Stream *interface) :
_handlerTable(handlerTable),
_interface(interface)
{

7
libraries/APM_BinComm/APM_BinComm.h

@ -30,7 +30,6 @@ @@ -30,7 +30,6 @@
#ifndef APM_BinComm_h
#define APM_BinComm_h
#include <FastSerial.h>
#include "WProgram.h"
#include <string.h>
#include <inttypes.h>
@ -184,11 +183,11 @@ public: @@ -184,11 +183,11 @@ public:
/// registered; handlers are called in the order
/// they appear in the table.
///
/// @param interface The FastSerial interface that will be used
/// @param interface The stream that will be used
/// for telemetry communications.
///
BinComm(const MessageHandler *handlerTable,
FastSerial *interface);
Stream *interface);
//////////////////////////////////////////////////////////////////////
/// @name Decoder interface
@ -227,7 +226,7 @@ public: @@ -227,7 +226,7 @@ public:
private:
const MessageHandler *_handlerTable; ///< callout table
FastSerial *_interface; ///< Serial port we send/receive using.
Stream *_interface; ///< Serial port we send/receive using.
/// Various magic numbers
enum MagicNumbers {

Loading…
Cancel
Save