Firmware for Arduino | PLEN Project Company Inc.
PLEN2::Soul Class Reference

The class which makes natural moving, for PLEN. More...

#include <Soul.h>

Public Member Functions

 Soul (AccelerationGyroSensor &sensor, MotionController &motion_ctrl)
 Constructor. More...
 
void log ()
 Log PLEN's state. More...
 
void userActionInputed ()
 Log a timing when a user action is input. More...
 
void action ()
 Apply appropriate motion based on logging state. More...
 

Detailed Description

The class which makes natural moving, for PLEN.

Constructor & Destructor Documentation

PLEN2::Soul::Soul ( AccelerationGyroSensor sensor,
MotionController motion_ctrl 
)

Constructor.

Parameters
[in,out]sensorAn instance of the sensor class.
[in,out]motion_ctrlAn instance of the motion controller class.

Member Function Documentation

void PLEN2::Soul::action ( )

Apply appropriate motion based on logging state.

void PLEN2::Soul::log ( )

Log PLEN's state.

void PLEN2::Soul::userActionInputed ( )

Log a timing when a user action is input.

Please run the method at the all timings when user action is input.


The documentation for this class was generated from the following file: