SRK Version of mDot LoRa_Sensormode_SRK

Dependencies:   libmDot mbed-rtos mbed

Fork of mDot_LoRa_Sensornode by Adrian Mitevski

Embed: (wiki syntax)

« Back to documentation index

TaskGyroscope Class Reference

TaskGyroscope Class Reference

This TaskGyroscope Class handles all the acquired data from other Tasks that measure data using the different sensors of Sensbert. More...

#include <TaskDatahandler.h>

Public Member Functions

osStatus start ()
 Starts the task by building it and connecting a callback function to the mbed::Thread.
osStatus stop ()
 Stops the task.
TASK_STATE getState ()
 Gets the actual state of the Task either RUNNING or SLEEPING.

Detailed Description

This TaskGyroscope Class handles all the acquired data from other Tasks that measure data using the different sensors of Sensbert.

This TaskGyroscope Class handles the gyroscope measurement using the MPU9250.

Starting the task using the start() starts the handling of the Data. The Task looks for queues that contains data and forwards the data from the queues via LoRa. The Task Class basically wraps mbeds Thread functionality.

Starting the task using the start() starts the measurement of all axis. It can be used alongside with other measurement Tasks inside the mbed::rtos environment. The Task Class basically wraps mbeds Thread functionality.

Definition at line 23 of file TaskGyroscope.h.


Member Function Documentation

TASK_STATE getState (  )

Gets the actual state of the Task either RUNNING or SLEEPING.

Returns:

Definition at line 92 of file TaskGyroscope.cpp.

osStatus start (  )

Starts the task by building it and connecting a callback function to the mbed::Thread.

Returns:

Definition at line 32 of file TaskGyroscope.cpp.

osStatus stop (  )

Stops the task.

Should only be used after start() was used

Returns:

Definition at line 37 of file TaskGyroscope.cpp.