Fabio Bobrow / CrazyflieSensors

Dependents:   Drones-Controlador controladoatitude_cteste Drone_Controlador_Atitude optical_test

Revision:
4:d55264b2cad5
Parent:
3:2f2b8e863991
--- a/LPS25H/LPS25H.cpp	Thu Apr 19 19:41:02 2018 +0000
+++ b/LPS25H/LPS25H.cpp	Thu Apr 19 19:44:07 2018 +0000
@@ -5,8 +5,19 @@
 {
 }
 
+/** Init barometer */
+void LPS25H::init()
+{
+    init_baro();
+}
+/** Read barometer */
+void LPS25H::read()
+{
+    read_baro();
+}
+
 /** Initialize barometer */
-void LPS25H::setup()
+void LPS25H::init_baro()
 {
     // LPS25H I2C address
     char address = LPS25H_ADDRESS;
@@ -18,12 +29,6 @@
 }
 
 /** Read barometer */
-void LPS25H::read()
-{
-    read_baro();
-}
-
-/** Read barometer output data */
 void LPS25H::read_baro()
 {
     // LPS25H I2C address