Skip to content

Commit 2be13af

Browse files
committedMay 25, 2023
More project setup
1 parent ad724be commit 2be13af

File tree

12 files changed

+118
-82
lines changed

12 files changed

+118
-82
lines changed
 

‎.gitignore

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Compiled Object files
2+
*.o
3+
*.obj
4+
5+
# Executables
6+
*.bin
7+
*.elf
8+
9+
# PROS
10+
bin/
11+
.vscode/
12+
.cache/
13+
compile_commands.json
14+
temp.log
15+
temp.errors
16+
*.ini
17+
.d/

‎Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ USE_PACKAGE:=1
2424
EXCLUDE_COLD_LIBRARIES:=
2525

2626
# Set this to 1 to add additional rules to compile your project as a PROS library template
27-
IS_LIBRARY:=0
27+
IS_LIBRARY:=1
2828
# TODO: CHANGE THIS!
2929
# Be sure that your header files are in the include directory inside of a folder with the
3030
# same name as what you set LIBNAME to below.
31-
LIBNAME:=libbest
32-
VERSION:=1.0.0
31+
LIBNAME:=libshell
32+
VERSION:=0.0.1
3333
# EXCLUDE_SRC_FROM_LIB= $(SRCDIR)/unpublishedfile.c
3434
# this line excludes opcontrol.c and similar files
3535
EXCLUDE_SRC_FROM_LIB+=$(foreach file, $(SRCDIR)/main,$(foreach cext,$(CEXTS),$(file).$(cext)) $(foreach cxxext,$(CXXEXTS),$(file).$(cxxext)))

‎README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# Shell
22
A programming shell designed for writing autonomous programs
3+
+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#pragma once
2+
3+
// TODO: Add the public API to initailize a working shell that uses ARMS
4+

‎include/shell/library_support/ez.hpp

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#pragma once
2+
3+
// TODO: Add an api here that allows the user to create a shell with
4+
// EZ-template support
+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#pragma once
2+
3+
// TODO: Add an api here that allows the user to create a shell with
4+
// lemlib support

‎include/shell/shell.hpp

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// Public API for the shell library
2+
3+
#pragma once
4+

‎project.pros

+81-79
Original file line numberDiff line numberDiff line change
@@ -1,83 +1,85 @@
11
{
2-
"py/object": "pros.conductor.project.Project",
3-
"py/state": {
4-
"project_name": "Shell",
5-
"target": "v5",
6-
"templates": {
7-
"kernel": {
8-
"location": "C:\\Users\\stump\\AppData\\Roaming\\PROS\\templates\\kernel@4.0.3",
9-
"metadata": {
10-
"cold_addr": "58720256",
11-
"cold_output": "bin/cold.package.bin",
12-
"hot_addr": "125829120",
13-
"hot_output": "bin/hot.package.bin",
14-
"origin": "local",
15-
"output": "bin/monolith.bin"
16-
},
17-
"name": "kernel",
18-
"py/object": "pros.conductor.templates.local_template.LocalTemplate",
19-
"supported_kernels": null,
20-
"system_files": [
21-
"include/pros/adi.hpp",
22-
"include/pros/distance.hpp",
23-
"include/pros/serial.hpp",
24-
"include/pros/motors.h",
25-
"include/pros/rotation.hpp",
26-
"include/pros/gps.h",
27-
"include/pros/serial.h",
28-
"include/pros/abstract_motor.hpp",
29-
"include/pros/imu.hpp",
30-
"include/pros/device.h",
31-
"include/pros/apix.h",
32-
"include/pros/misc.hpp",
33-
"include/pros/motor_group.hpp",
34-
"include/pros/screen.hpp",
35-
"include/pros/misc.h",
36-
"common.mk",
37-
"include/pros/link.h",
38-
"firmware/v5-common.ld",
39-
"firmware/libm.a",
40-
"include/api.h",
41-
"include/pros/motors.hpp",
42-
"include/pros/link.hpp",
43-
"include/pros/distance.h",
44-
"firmware/v5-hot.ld",
45-
"firmware/libc.a",
46-
"include/pros/llemu.h",
47-
"include/pros/error.h",
48-
"include/pros/gps.hpp",
49-
"include/pros/screen.h",
50-
"include/pros/llemu.hpp",
51-
"firmware/v5.ld",
52-
"include/pros/device.hpp",
53-
"include/pros/rotation.h",
54-
"include/pros/optical.h",
55-
"include/pros/imu.h",
56-
"include/pros/optical.hpp",
57-
"include/pros/colors.hpp",
58-
"firmware/libpros.a",
59-
"include/pros/vision.hpp",
60-
"include/pros/colors.h",
61-
"include/pros/ext_adi.h",
62-
"include/pros/adi.h",
63-
"include/pros/rtos.h",
64-
"include/pros/rtos.hpp",
65-
"include/pros/vision.h"
66-
],
67-
"target": "v5",
68-
"user_files": [
69-
"include/main.hpp",
70-
".gitignore",
71-
"Makefile",
72-
"include/main.hh",
73-
"src/main.cpp",
74-
"include/main.h",
75-
"src/main.cc",
76-
"src/main.c"
77-
],
78-
"version": "4.0.3"
79-
}
2+
"py/object": "pros.conductor.project.Project",
3+
"py/state": {
4+
"project_name": "Shell",
5+
"target": "v5",
6+
"templates": {
7+
"kernel": {
8+
"location": "C:\\Users\\stump\\AppData\\Roaming\\PROS\\templates\\kernel@4.0.3",
9+
"metadata": {
10+
"cold_addr": "58720256",
11+
"cold_output": "bin/cold.package.bin",
12+
"hot_addr": "125829120",
13+
"hot_output": "bin/hot.package.bin",
14+
"origin": "local",
15+
"output": "bin/monolith.bin"
8016
},
81-
"upload_options": {}
17+
"name": "kernel",
18+
"py/object": "pros.conductor.templates.local_template.LocalTemplate",
19+
"supported_kernels": null,
20+
"system_files": [
21+
"include/pros/adi.hpp",
22+
"include/pros/distance.hpp",
23+
"include/pros/serial.hpp",
24+
"include/pros/motors.h",
25+
"include/pros/rotation.hpp",
26+
"include/pros/gps.h",
27+
"include/pros/serial.h",
28+
"include/pros/abstract_motor.hpp",
29+
"include/pros/imu.hpp",
30+
"include/pros/device.h",
31+
"include/pros/apix.h",
32+
"include/pros/misc.hpp",
33+
"include/pros/motor_group.hpp",
34+
"include/pros/screen.hpp",
35+
"include/pros/misc.h",
36+
"common.mk",
37+
"include/pros/link.h",
38+
"firmware/v5-common.ld",
39+
"firmware/libm.a",
40+
"include/api.h",
41+
"include/pros/motors.hpp",
42+
"include/pros/link.hpp",
43+
"include/pros/distance.h",
44+
"firmware/v5-hot.ld",
45+
"firmware/libc.a",
46+
"include/pros/llemu.h",
47+
"include/pros/error.h",
48+
"include/pros/gps.hpp",
49+
"include/pros/screen.h",
50+
"include/pros/llemu.hpp",
51+
"firmware/v5.ld",
52+
"include/pros/device.hpp",
53+
"include/pros/rotation.h",
54+
"include/pros/optical.h",
55+
"include/pros/imu.h",
56+
"include/pros/optical.hpp",
57+
"include/pros/colors.hpp",
58+
"firmware/libpros.a",
59+
"include/pros/vision.hpp",
60+
"include/pros/colors.h",
61+
"include/pros/ext_adi.h",
62+
"include/pros/adi.h",
63+
"include/pros/rtos.h",
64+
"include/pros/rtos.hpp",
65+
"include/pros/vision.h"
66+
],
67+
"target": "v5",
68+
"user_files": [
69+
"include/main.hpp",
70+
".gitignore",
71+
"Makefile",
72+
"include/main.hh",
73+
"src/main.cpp",
74+
"include/main.h",
75+
"src/main.cc",
76+
"src/main.c"
77+
],
78+
"version": "4.0.3"
79+
}
80+
},
81+
"upload_options": {
82+
"icon": "pros"
8283
}
84+
}
8385
}

‎src/shell/library_support/arms.cpp

Whitespace-only changes.

‎src/shell/library_support/ez.cpp

Whitespace-only changes.

‎src/shell/library_support/lemlib.cpp

Whitespace-only changes.

‎src/shell/shell.cpp

Whitespace-only changes.

0 commit comments

Comments
 (0)
Please sign in to comment.