-
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 #9 from Team846/drivetrain_impl
Drivetrain impl
- Loading branch information
Showing
56 changed files
with
1,695 additions
and
125 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,26 @@ | ||
# Outputs metrics such as [linecount] for this codebase | ||
|
||
import os | ||
|
||
INCL = ['*.py', '*.cc', '*.cpp', '.h', '.hpp', '.gradle', '.bat', '.sh', '.md', '.standard', '.json', '.lst'] | ||
FORCE_INCL_DIR = ["src\\deploy", "src/deploy"] | ||
|
||
if __name__ == "__main__": | ||
|
||
cwd = os.getcwd() | ||
|
||
files = [] | ||
for root, dirs, filenames in os.walk(cwd): | ||
for filename in filenames: | ||
if any([root.__contains__(d) for d in FORCE_INCL_DIR]): | ||
files.append(os.path.join(root, filename)) | ||
continue | ||
for ext in INCL: | ||
if filename.endswith(ext): | ||
files.append(os.path.join(root, filename)) | ||
|
||
linecount = 0 | ||
for file in files: | ||
linecount += sum(1 for line in open(file)) | ||
|
||
print(linecount) |
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,186 @@ | ||
[ | ||
{ | ||
"name": "/Preferences/DrivetrainConstructor/DrivetrainConstructor/drive_motor_current_limit (A)", | ||
"type": "double", | ||
"value": 120.0, | ||
"properties": { | ||
"persistent": true | ||
} | ||
}, | ||
{ | ||
"name": "/Preferences/DrivetrainConstructor/DrivetrainConstructor/steer_motor_current_limit (A)", | ||
"type": "double", | ||
"value": 120.0, | ||
"properties": { | ||
"persistent": true | ||
} | ||
}, | ||
{ | ||
"name": "/Preferences/DrivetrainConstructor/DrivetrainConstructor/drive_motor_smart_current_limit (A)", | ||
"type": "double", | ||
"value": 80.0, | ||
"properties": { | ||
"persistent": true | ||
} | ||
}, | ||
{ | ||
"name": "/Preferences/DrivetrainConstructor/DrivetrainConstructor/steer_motor_smart_current_limit (A)", | ||
"type": "double", | ||
"value": 80.0, | ||
"properties": { | ||
"persistent": true | ||
} | ||
}, | ||
{ | ||
"name": "/Preferences/DrivetrainConstructor/DrivetrainConstructor/drive_motor_voltage_compensation (V)", | ||
"type": "double", | ||
"value": 16.0, | ||
"properties": { | ||
"persistent": true | ||
} | ||
}, | ||
{ | ||
"name": "/Preferences/DrivetrainConstructor/DrivetrainConstructor/steer_motor_voltage_compensation (V)", | ||
"type": "double", | ||
"value": 12.0, | ||
"properties": { | ||
"persistent": true | ||
} | ||
}, | ||
{ | ||
"name": "/Preferences/SwerveDrivetrain/FR/SwerveDrivetrain/FR/cancoder_offset_ (deg)", | ||
"type": "double", | ||
"value": 0.0, | ||
"properties": { | ||
"persistent": true | ||
} | ||
}, | ||
{ | ||
"name": "/Preferences/SwerveDrivetrain/FL/SwerveDrivetrain/FL/cancoder_offset_ (deg)", | ||
"type": "double", | ||
"value": 0.0, | ||
"properties": { | ||
"persistent": true | ||
} | ||
}, | ||
{ | ||
"name": "/Preferences/SwerveDrivetrain/BR/SwerveDrivetrain/BR/cancoder_offset_ (deg)", | ||
"type": "double", | ||
"value": 0.0, | ||
"properties": { | ||
"persistent": true | ||
} | ||
}, | ||
{ | ||
"name": "/Preferences/SwerveDrivetrain/BL/SwerveDrivetrain/BL/cancoder_offset_ (deg)", | ||
"type": "double", | ||
"value": 0.0, | ||
"properties": { | ||
"persistent": true | ||
} | ||
}, | ||
{ | ||
"name": "/Preferences/SwerveDrivetrain/steer_gains/kP", | ||
"type": "double", | ||
"value": 0.3, | ||
"properties": { | ||
"persistent": true | ||
} | ||
}, | ||
{ | ||
"name": "/Preferences/SwerveDrivetrain/steer_gains/kI", | ||
"type": "double", | ||
"value": 0.0, | ||
"properties": { | ||
"persistent": true | ||
} | ||
}, | ||
{ | ||
"name": "/Preferences/SwerveDrivetrain/steer_gains/kD", | ||
"type": "double", | ||
"value": 0.0, | ||
"properties": { | ||
"persistent": true | ||
} | ||
}, | ||
{ | ||
"name": "/Preferences/SwerveDrivetrain/steer_gains/kF", | ||
"type": "double", | ||
"value": 0.0, | ||
"properties": { | ||
"persistent": true | ||
} | ||
}, | ||
{ | ||
"name": "/Preferences/robot_container/init_drivetrain", | ||
"type": "boolean", | ||
"value": true, | ||
"properties": { | ||
"persistent": true | ||
} | ||
}, | ||
{ | ||
"name": "/Preferences/robot_container/init_leds", | ||
"type": "boolean", | ||
"value": true, | ||
"properties": { | ||
"persistent": true | ||
} | ||
}, | ||
{ | ||
"name": "/Preferences/control_input/trigger_threshold", | ||
"type": "double", | ||
"value": 0.3, | ||
"properties": { | ||
"persistent": true | ||
} | ||
}, | ||
{ | ||
"name": "/Preferences/SwerveDrivetrain/SwerveDrivetrain/max_speed (fps)", | ||
"type": "double", | ||
"value": 15.0, | ||
"properties": { | ||
"persistent": true | ||
} | ||
}, | ||
{ | ||
"name": "/Preferences/SwerveDrivetrain/SwerveDrivetrain/max_omega (deg_per_s)", | ||
"type": "double", | ||
"value": 180.0, | ||
"properties": { | ||
"persistent": true | ||
} | ||
}, | ||
{ | ||
"name": "/Preferences/control_input/translation_deadband", | ||
"type": "double", | ||
"value": 0.07, | ||
"properties": { | ||
"persistent": true | ||
} | ||
}, | ||
{ | ||
"name": "/Preferences/control_input/translation_exponent", | ||
"type": "int", | ||
"value": 2, | ||
"properties": { | ||
"persistent": true | ||
} | ||
}, | ||
{ | ||
"name": "/Preferences/control_input/rotation_deadband", | ||
"type": "double", | ||
"value": 0.07, | ||
"properties": { | ||
"persistent": true | ||
} | ||
}, | ||
{ | ||
"name": "/Preferences/control_input/rotation_exponent", | ||
"type": "int", | ||
"value": 2, | ||
"properties": { | ||
"persistent": true | ||
} | ||
} | ||
] |
Oops, something went wrong.