KRAI ITB GARUDAGO / Mbed 2 deprecated krai_roda2019

Dependencies:   mbed pid_dagoz

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers sensor.h Source File

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