Skip to content
This repository has been archived by the owner on Jul 11, 2024. It is now read-only.

Commit

Permalink
Fix project recompilation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Marsgate committed Nov 14, 2022
1 parent 691eca1 commit 21966c2
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 18 deletions.
11 changes: 6 additions & 5 deletions include/ARMS/api.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#pragma once

#include "ARMS/lib.h"

// The config file needs to be last because the arms::init()
// function inside of it depends on init() funciton of the subsystems
#include "ARMS/config.h"
#include "ARMS/chassis.h"
#include "ARMS/flags.h"
#include "ARMS/odom.h"
#include "ARMS/pid.h"
#include "ARMS/point.h"
#include "ARMS/selector.h"
2 changes: 1 addition & 1 deletion include/ARMS/config.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef _ARMS_CONFIG_H_
#define _ARMS_CONFIG_H_

#include "ARMS/lib.h"
#include "ARMS/api.h"


namespace arms {
Expand Down
8 changes: 0 additions & 8 deletions include/ARMS/lib.h

This file was deleted.

1 change: 0 additions & 1 deletion include/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include "ARMS/api.h"
#include "api.h"

// subsystems
using namespace pros;

#ifdef __cplusplus
Expand Down
2 changes: 1 addition & 1 deletion src/ARMS/chassis.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "ARMS/lib.h"
#include "ARMS/api.h"
#include "api.h"
#include "pros/motors.h"

Expand Down
2 changes: 1 addition & 1 deletion src/ARMS/odom.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "ARMS/lib.h"
#include "ARMS/api.h"
#include "api.h"

namespace arms::odom {
Expand Down
2 changes: 1 addition & 1 deletion src/ARMS/pid.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "ARMS/lib.h"
#include "ARMS/api.h"
#include "api.h"

namespace arms::pid {
Expand Down
1 change: 1 addition & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "main.h"
#include "ARMS/config.h"

pros::Controller master(CONTROLLER_MASTER);

Expand Down

0 comments on commit 21966c2

Please sign in to comment.