Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
SerialRazor.h
00001 #pragma once 00002 00003 // This is a buffered serial reading class, using the serial interrupt introduced in mbed library version 18 on 17/11/09 00004 00005 // In the simplest case, construct it with a buffer size at least equal to the largest message you 00006 // expect your program to receive in one go. 00007 00008 class SerialRazor : public Serial 00009 { 00010 public: 00011 SerialRazor( size_t bufferSize, PinName tx, PinName rx ); 00012 virtual ~SerialRazor(); 00013 float getRoll(void); 00014 float getPitch(void); 00015 float getYaw(void); 00016 00017 00018 00019 private: 00020 00021 void handleInterrupt(); 00022 float roll; 00023 float pitch; 00024 float yaw; 00025 char *m_buff; 00026 uint16_t m_buffSize; 00027 00028 00029 };
Generated on Wed Jul 13 2022 23:00:38 by
1.7.2