|
|
@ -13,7 +13,7 @@ class Pigeon { |
|
|
|
|
|
|
|
|
|
|
|
void init(); |
|
|
|
void init(); |
|
|
|
virtual void set_baud(int baud) = 0; |
|
|
|
virtual void set_baud(int baud) = 0; |
|
|
|
virtual void send(std::string s) = 0; |
|
|
|
virtual void send(const std::string &s) = 0; |
|
|
|
virtual std::string receive() = 0; |
|
|
|
virtual std::string receive() = 0; |
|
|
|
virtual void set_power(bool power) = 0; |
|
|
|
virtual void set_power(bool power) = 0; |
|
|
|
}; |
|
|
|
}; |
|
|
@ -24,7 +24,7 @@ public: |
|
|
|
~PandaPigeon(); |
|
|
|
~PandaPigeon(); |
|
|
|
void connect(Panda * p); |
|
|
|
void connect(Panda * p); |
|
|
|
void set_baud(int baud); |
|
|
|
void set_baud(int baud); |
|
|
|
void send(std::string s); |
|
|
|
void send(const std::string &s); |
|
|
|
std::string receive(); |
|
|
|
std::string receive(); |
|
|
|
void set_power(bool power); |
|
|
|
void set_power(bool power); |
|
|
|
}; |
|
|
|
}; |
|
|
@ -37,7 +37,7 @@ public: |
|
|
|
~TTYPigeon(); |
|
|
|
~TTYPigeon(); |
|
|
|
void connect(const char* tty); |
|
|
|
void connect(const char* tty); |
|
|
|
void set_baud(int baud); |
|
|
|
void set_baud(int baud); |
|
|
|
void send(std::string s); |
|
|
|
void send(const std::string &s); |
|
|
|
std::string receive(); |
|
|
|
std::string receive(); |
|
|
|
void set_power(bool power); |
|
|
|
void set_power(bool power); |
|
|
|
}; |
|
|
|
}; |
|
|
|