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.
sensor.h
00001 /* 00002 * Author : Garudago KRAI ITB 2019 00003 * Developer : Calmantara Sumpono Putra 00004 * Version : 1.0.0 00005 */ 00006 00007 #ifndef SENSOR_H 00008 #define SENSOR_H 00009 00010 class Compass{ 00011 public: 00012 Compass(); 00013 void compass_reset(float _value); 00014 //procedure that update offset value of compass 00015 00016 void compass_update(float _value); 00017 //procedure that update compass value 00018 00019 float compass_value(); 00020 //procedure that return compass value after transform 00021 private: 00022 float _offset_compass_value; 00023 float _theta_origin; 00024 float _theta_offset; 00025 00026 }; 00027 00028 #endif
Generated on Mon Jul 18 2022 17:00:01 by
