-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
237 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#include "Jab.hpp" | ||
namespace puara_gestures::objects | ||
{ | ||
void Jab::operator()(halp::tick t) | ||
{ | ||
// TODO | ||
// outputs.output = impl.jab(inputs.accel, inputs.gyro, inputs.mag, 0.1); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#pragma once | ||
|
||
#include <halp/audio.hpp> | ||
#include <halp/controls.hpp> | ||
#include <halp/meta.hpp> | ||
|
||
#include <puara-jab.h> | ||
|
||
namespace puara_gestures::objects | ||
{ | ||
class Jab | ||
{ | ||
public: | ||
halp_meta(name, "Jab") | ||
halp_meta(category, "Gestures") | ||
halp_meta(c_name, "puara_jab") | ||
halp_meta(uuid, "70cf4250-d66e-4a78-824f-4b51fb3d0075") | ||
|
||
struct ins | ||
{ | ||
halp::val_port<"Acceleration", puara_gestures::Coord3D> accel; | ||
halp::val_port<"Gyrosocope", puara_gestures::Coord3D> gyro; | ||
halp::val_port<"Magnetometer", puara_gestures::Coord3D> mag; | ||
} inputs; | ||
|
||
struct | ||
{ | ||
halp::val_port<"Output", float> output; | ||
} outputs; | ||
|
||
halp::setup setup; | ||
void prepare(halp::setup info) { setup = info; } | ||
|
||
using tick = halp::tick; | ||
void operator()(halp::tick t); | ||
|
||
puara_gestures::Jab impl; | ||
}; | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#include "Roll.hpp" | ||
namespace puara_gestures::objects | ||
{ | ||
void Roll::operator()(halp::tick t) | ||
{ | ||
outputs.output = impl.roll(inputs.accel, inputs.gyro, inputs.mag, 0.1); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#pragma once | ||
|
||
#include <halp/audio.hpp> | ||
#include <halp/controls.hpp> | ||
#include <halp/meta.hpp> | ||
|
||
#include <puara-roll.h> | ||
|
||
namespace puara_gestures::objects | ||
{ | ||
class Roll | ||
{ | ||
public: | ||
halp_meta(name, "Roll") | ||
halp_meta(category, "Gestures") | ||
halp_meta(c_name, "puara_roll") | ||
halp_meta(uuid, "3135b5e0-39a6-4151-8ae4-a657d577eab8") | ||
|
||
struct ins | ||
{ | ||
halp::val_port<"Acceleration", puara_gestures::Coord3D> accel; | ||
halp::val_port<"Gyrosocope", puara_gestures::Coord3D> gyro; | ||
halp::val_port<"Magnetometer", puara_gestures::Coord3D> mag; | ||
} inputs; | ||
|
||
struct | ||
{ | ||
halp::val_port<"Output", float> output; | ||
} outputs; | ||
|
||
halp::setup setup; | ||
void prepare(halp::setup info) { setup = info; } | ||
|
||
using tick = halp::tick; | ||
void operator()(halp::tick t); | ||
|
||
puara_gestures::Roll impl; | ||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#include "Shake.hpp" | ||
namespace puara_gestures::objects | ||
{ | ||
void Shake::operator()(halp::tick t) | ||
{ | ||
// TODO | ||
// outputs.output = impl.shake(inputs.accel, inputs.gyro, inputs.mag, 0.1); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#pragma once | ||
|
||
#include <halp/audio.hpp> | ||
#include <halp/controls.hpp> | ||
#include <halp/meta.hpp> | ||
|
||
#include <puara-shake.h> | ||
|
||
namespace puara_gestures::objects | ||
{ | ||
class Shake | ||
{ | ||
public: | ||
halp_meta(name, "Shake") | ||
halp_meta(category, "Gestures") | ||
halp_meta(c_name, "puara_shake") | ||
halp_meta(uuid, "ecb5dc46-164c-46a0-a01e-90e3c3bd7527") | ||
|
||
struct ins | ||
{ | ||
halp::val_port<"Acceleration", puara_gestures::Coord3D> accel; | ||
halp::val_port<"Gyrosocope", puara_gestures::Coord3D> gyro; | ||
halp::val_port<"Magnetometer", puara_gestures::Coord3D> mag; | ||
} inputs; | ||
|
||
struct | ||
{ | ||
halp::val_port<"Output", float> output; | ||
} outputs; | ||
|
||
halp::setup setup; | ||
void prepare(halp::setup info) { setup = info; } | ||
|
||
using tick = halp::tick; | ||
void operator()(halp::tick t); | ||
|
||
puara_gestures::Shake impl; | ||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#include "Tilt.hpp" | ||
namespace puara_gestures::objects | ||
{ | ||
void Tilt::operator()(halp::tick t) | ||
{ | ||
outputs.output = impl.tilt(inputs.accel, inputs.gyro, inputs.mag, 0.1); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#pragma once | ||
|
||
#include <halp/audio.hpp> | ||
#include <halp/controls.hpp> | ||
#include <halp/meta.hpp> | ||
|
||
#include <puara-tilt.h> | ||
|
||
namespace puara_gestures::objects | ||
{ | ||
class Tilt | ||
{ | ||
public: | ||
halp_meta(name, "Tilt") | ||
halp_meta(category, "Gestures") | ||
halp_meta(c_name, "puara_tilt") | ||
halp_meta(uuid, "13fd4da6-3ebb-48dd-ac81-3de0aced5d32") | ||
|
||
struct ins | ||
{ | ||
halp::val_port<"Acceleration", puara_gestures::Coord3D> accel; | ||
halp::val_port<"Gyrosocope", puara_gestures::Coord3D> gyro; | ||
halp::val_port<"Magnetometer", puara_gestures::Coord3D> mag; | ||
} inputs; | ||
|
||
struct | ||
{ | ||
halp::val_port<"Output", float> output; | ||
} outputs; | ||
|
||
halp::setup setup; | ||
void prepare(halp::setup info) { setup = info; } | ||
|
||
using tick = halp::tick; | ||
void operator()(halp::tick t); | ||
|
||
puara_gestures::Tilt impl; | ||
}; | ||
|
||
} |