-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔀 Merge branch 'yann/feature/battery/use-polynomial-to-get-battery-vo…
…ltage' into develop * yann/feature/battery/use-polynomial-to-get-battery-voltage: ♻️ (battery): Modernize battery spike ✅ (battery): Set voltage in each Capacity and near expected value ✨ (battery): Add isCharging function ⚡ (battery): Use accurate conversion to get battery value 🤡 (DigitalIn): Mock mbed DigitalIn
- Loading branch information
Showing
5 changed files
with
167 additions
and
118 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
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,26 @@ | ||
// Leka - LekaOS | ||
// Copyright 2021 APF France handicap | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#ifndef _LEKA_OS_MBED_MOCK_DIGITAL_IN_H_ | ||
#define _LEKA_OS_MBED_MOCK_DIGITAL_IN_H_ | ||
|
||
#include "PinNames.h" | ||
|
||
#include "drivers/interfaces/InterfaceDigitalIn.h" | ||
|
||
#include "gmock/gmock.h" | ||
|
||
namespace mbed::mock { | ||
|
||
class DigitalIn : public mbed::interface::DigitalIn | ||
{ | ||
public: | ||
MOCK_METHOD(int, read, (), (override)); | ||
MOCK_METHOD(void, mode, (PinMode pull), (override)); | ||
MOCK_METHOD(int, is_connected, (), (override)); | ||
}; | ||
|
||
} // namespace mbed::mock | ||
|
||
#endif // _LEKA_OS_MBED_MOCK_DIGITAL_IN_H_ |