-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hugo/feature/Mock LedKit #1206
Merged
Merged
hugo/feature/Mock LedKit #1206
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
0fb5b94
:building_construction: (interface): Add Ledkit interface
HPezz 0de128b
:clown_face: (mock): Mock LedKit
HPezz 1d2d38f
:building_construction: (LedKit): LedKit inherit from interface::LedKit
HPezz 25c6e26
:building_construction: (BehaviorKit): BehaviorKit depends on interfa…
HPezz 945e6f4
:building_construction: (ReinforcerKit): ReinforcerKit depends on int…
HPezz 61708ad
:building_construction: (RC): RC depends on interface::LedKit
HPezz 10430ec
:recycle: (OS & spikes): Update imports & calls on spikes & OS
HPezz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,22 @@ | ||
// Leka - LekaOS | ||
// Copyright 2022 APF France handicap | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#pragma once | ||
|
||
#include "LEDAnimation.h" | ||
|
||
namespace leka::interface { | ||
|
||
class LedKit | ||
{ | ||
public: | ||
virtual ~LedKit() = default; | ||
|
||
virtual void init() = 0; | ||
virtual void start(interface::LEDAnimation *animation) = 0; | ||
virtual void run() = 0; | ||
virtual void stop() = 0; | ||
}; | ||
|
||
} // namespace leka::interface |
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
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
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,63 @@ | ||
// Leka - LekaOS | ||
// Copyright 2022 APF France handicap | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#pragma once | ||
|
||
#include "animations/AfraidBlue.h" | ||
#include "animations/AfraidRed.h" | ||
#include "animations/AfraidRedBlue.h" | ||
#include "animations/Amazed.h" | ||
#include "animations/Angry.h" | ||
#include "animations/AngryShort.h" | ||
#include "animations/BleConnection.h" | ||
#include "animations/BlinkGreen.h" | ||
#include "animations/Bubbles.h" | ||
#include "animations/Disgusted.h" | ||
#include "animations/Fire.h" | ||
#include "animations/Fly.h" | ||
#include "animations/Happy.h" | ||
#include "animations/Rainbow.h" | ||
#include "animations/Sad.h" | ||
#include "animations/SadCry.h" | ||
#include "animations/Sick.h" | ||
#include "animations/Singing.h" | ||
#include "animations/Sleeping.h" | ||
#include "animations/Sneeze.h" | ||
#include "animations/SpinBlink.h" | ||
#include "animations/Sprinkles.h" | ||
#include "animations/Underwater.h" | ||
#include "animations/WakeUp.h" | ||
#include "animations/Wink.h" | ||
#include "animations/Yawn.h" | ||
|
||
namespace leka::led::animation { | ||
|
||
static inline auto afraid_blue = led::animation::AfraidBlue {}; | ||
static inline auto afraid_red = led::animation::AfraidRed {}; | ||
static inline auto afraid_red_blue = led::animation::AfraidRedBlue {}; | ||
static inline auto amazed = led::animation::Amazed {}; | ||
static inline auto angry = led::animation::Angry {}; | ||
static inline auto angry_short = led::animation::AngryShort {}; | ||
static inline auto blink_green = led::animation::BlinkGreen {}; | ||
static inline auto bubbles = led::animation::Bubbles {}; | ||
static inline auto ble_connection = led::animation::BleConnection {}; | ||
static inline auto disgusted = led::animation::Disgusted {}; | ||
static inline auto fire = led::animation::Fire {}; | ||
static inline auto fly = led::animation::Fly {}; | ||
static inline auto happy = led::animation::Happy {}; | ||
static inline auto rainbow = led::animation::Rainbow {}; | ||
static inline auto sad = led::animation::Sad {}; | ||
static inline auto sad_cry = led::animation::SadCry {}; | ||
static inline auto sick = led::animation::Sick {}; | ||
static inline auto singing = led::animation::Singing {}; | ||
static inline auto sleeping = led::animation::Sleeping {}; | ||
static inline auto sneeze = led::animation::Sneeze {}; | ||
static inline auto spin_blink = led::animation::SpinBlink {}; | ||
static inline auto sprinkles = led::animation::Sprinkles {}; | ||
static inline auto underwater = led::animation::Underwater {}; | ||
static inline auto wake_up = led::animation::WakeUp {}; | ||
static inline auto wink = led::animation::Wink {}; | ||
static inline auto yawn = led::animation::Yawn {}; | ||
|
||
}; // namespace leka::led::animation |
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not related to the PR, but could behaviors depend on motionkit instead of motors? how are motors used here?