-
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.
Merge pull request #1 from NoozAbooz/rewrite
Rewrite
- Loading branch information
Showing
40 changed files
with
378 additions
and
875 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
Binary file not shown.
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,10 +1,19 @@ | ||
# if "template" is in the make command, do not include static.lib files | ||
ifneq (,$(findstring template,$(MAKECMDGOALS))) | ||
ASSET_FILES=$(wildcard static/*) | ||
else | ||
ASSET_FILES=$(wildcard static/*) $(wildcard static.lib/*) | ||
endif | ||
|
||
TEMPLATE_FILES+=$(wildcard static/*) $(wildcard firmware/hot-cold-asset.mk) | ||
|
||
ASSET_OBJ=$(addprefix $(BINDIR)/, $(addsuffix .o, $(ASSET_FILES)) ) | ||
|
||
GETALLOBJ=$(sort $(call ASMOBJ,$1) $(call COBJ,$1) $(call CXXOBJ,$1)) $(ASSET_OBJ) | ||
|
||
.SECONDEXPANSION: | ||
$(ASSET_OBJ): $$(patsubst bin/%,%,$$(basename $$@)) | ||
$(VV)mkdir -p $(BINDIR)/static | ||
$(VV)mkdir -p $(BINDIR)/static.lib | ||
@echo "ASSET $@" | ||
$(VV)$(OBJCOPY) -I binary -O elf32-littlearm -B arm $^ $@ |
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
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 @@ | ||
#pragma once | ||
#include "main.h" | ||
|
||
namespace ks { | ||
double driveCurve(double input, double curve); | ||
void arcadeDrive(int linCurve, int rotCurve, double turnScale); | ||
} |
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
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,13 @@ | ||
#pragma once | ||
#include "main.h" | ||
|
||
#include <math.h> | ||
#include <cmath> | ||
#include <vector> | ||
|
||
#include "libKS/drivetrain/chassis.hpp" | ||
#include "libKS/drivetrain/movement.hpp" | ||
#include "libKS/drivetrain/odom.hpp" | ||
#include "libKS/drivetrain/PID.hpp" | ||
|
||
#include "libKS/utilities.hpp" |
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,16 @@ | ||
#pragma once | ||
#include "main.h" | ||
#include <deque> | ||
|
||
namespace ks | ||
{ | ||
double vector_average(const std::vector<double>& v); | ||
double median_filter(std::deque<double>& buffer, double newVal, int windowSize); | ||
float to_milivolt(float input); | ||
bool isDriverControl(); | ||
|
||
double to_rad(double angle_deg); | ||
double to_deg(double angle_rad); | ||
|
||
void calibrateIMU(pros::Imu inertial1, pros::Imu inertial2); | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.