generated from RIT-EVT/project-template
-
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
1 parent
406b6bd
commit 39096f4
Showing
8 changed files
with
46 additions
and
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#include <dev/ACS71240.hpp> | ||
|
||
namespace LVSS { | ||
|
||
ACS71240::ACS71240(IO::ADC& adc0) : ADC(adc0) {} | ||
|
||
int32_t ACS71240::readCurrent() { | ||
//Gets adcCounts from adc | ||
int32_t adcCounts = ADC.readRaw(); | ||
|
||
int32_t current = (((adcCounts-1970) * 3300) / 180); | ||
|
||
return current; | ||
} | ||
|
||
uint32_t ACS71240::readCounts() { | ||
uint32_t adcCounts = ADC.readRaw(); | ||
return adcCounts; | ||
} | ||
|
||
}// namespace LVSS |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# Add all targets | ||
add_subdirectory(REV3-LVSS) | ||
add_subdirectory(REV3-ACS71240) |
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,7 @@ | ||
include(${EVT_CORE_DIR}/cmake/evt-core_build.cmake) | ||
|
||
project(REV3-ACS71240) | ||
cmake_minimum_required(VERSION 3.15) | ||
|
||
make_exe(${PROJECT_NAME} main.cpp) | ||
target_link_libraries(${PROJECT_NAME} PUBLIC ${BOARD_LIB_NAME}) |
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