Tyler Veness
0cd05d1a42
Cleaned up integer type usage in wpilibc ( #92 )
...
Replaced all unsigned types to signed and int32_t with int in wpilibc
2016-09-06 00:01:45 -07:00
Tyler Veness
ff93050b31
Remove static_assert for sizeof(uint32_t) <= sizeof(void*) ( #220 )
...
According to #192 , we don't cast integers to pointers anymore. The size static_assert is unnecessary.
2016-09-05 23:31:58 -07:00
Tyler Veness
05626cfafe
Fixed cpplint.py warnings ( #215 )
...
* Fixed cpplint.py [build/include_order] and [build/include_what_you_use] warnings
* Fixed cpplint.py [readability/casting] warnings
* Updated .styleguide format
* Fixed cpplint.py [build/header_guard] warnings
2016-09-05 13:55:31 -07:00
Thad House
59ec54887d
Switches notifier to use a typedef for the callback, and prepends HAL_ to InterruptHandlerFunction ( #216 )
2016-09-05 07:31:51 -07:00
Tyler Veness
028efff50d
Ran format.py ( #217 )
2016-09-05 07:31:02 -07:00
Tyler Veness
2499771cf4
Added extensions to .styleguide ( #214 )
...
wpilibsuite/styleguide is going to use extensions specified in .styleguide instead of hardcoded extensions. This patch should be merged first to maintain correct operation.
2016-09-01 20:31:38 -07:00
Fred Silberberg
c989ae808b
Updated gradle to 3.0 ( #208 )
2016-09-01 20:30:37 -07:00
Tyler Veness
93b486b6ba
Replaced C-style casts found by GCC in HAL, wpilibc, and JNI ( #211 )
2016-08-24 21:39:16 -07:00
Thad House
2ec6132fcb
Switches compiler from -O0 to -Og ( #197 )
...
Should be a heavy increase in performance
2016-08-21 19:15:58 -07:00
Thad House
8aba2b2850
Adds .vscode to styleguide ignore files ( #210 )
2016-08-21 12:35:58 -07:00
Tyler Veness
32c95fa0da
Moved style guide documents and scripts to wpilibsuite/styleguide ( #207 )
2016-08-21 10:31:43 -07:00
Thad House
40365faeda
Adds a static mutex to notifiers to stop destructor race condition ( #204 )
2016-08-15 19:56:32 -07:00
Thad House
776cb915bc
Revert "PIDController queue now stores inputs instead of errors ( #138 )" ( #205 )
...
This reverts commit 7501ae65a1 .
2016-08-13 23:49:31 -07:00
Thad House
5e9fe2f5cb
Adds an ignore for Visual Studio Code files ( #203 )
2016-08-13 14:44:10 -07:00
Tyler Veness
7501ae65a1
PIDController queue now stores inputs instead of errors ( #138 )
...
Closes #29 .
2016-08-12 22:04:44 -07:00
Peter Johnson
63469c00c4
run-tests-on-robot.sh: Save coredump on crash. ( #201 )
2016-08-12 19:18:48 -07:00
Fred Silberberg
3df257cdbb
Set duplicate strategy for all jars and zips to prevent duplicates from occurring ( #191 )
2016-08-12 13:45:58 -07:00
Tyler Veness
45b8e9ab4f
Renamed "pin" to "channel" and variables with underscores now use mixed case ( #194 )
2016-08-12 13:45:28 -07:00
Tyler Veness
227fdc1a60
Updated C++ style guide ( #196 )
...
include guard section now requires #pragma once, enumerators now exclusively use constant naming, and a mention of format.py was added to the "Formatting" section and CONTRIBUTING.md.
2016-08-12 07:14:49 -07:00
Tyler Veness
d347cebf67
Cleaned up odd formatting from static_cast by using "u" integer literal ( #200 )
2016-08-12 06:08:57 -07:00
Tyler Veness
3819cd0768
Updated cpplint.py and fixed its regexes for C-style casts ( #193 )
...
Additional C-style cast warnings thrown were also fixed.
2016-08-11 23:38:45 -07:00
Tyler Veness
e8f1fdda44
format.py now emits warnings for modified generated files ( #195 )
2016-08-11 23:10:10 -07:00
Tyler Veness
fd4719cb87
Fixed Doxygen comments for LinearDigitalFilter ( #198 )
2016-08-11 22:47:51 -07:00
Tyler Veness
6ef4745d86
Added Joystick::GetAxisType() ( #98 )
2016-08-07 10:19:19 -05:00
Thad House
62a980d3c8
Fixes Relay Constant Test ( #189 )
2016-07-26 13:53:45 -07:00
Thad House
866046edd1
Some general cleanups in the HAL ( #188 )
...
AnalogTrigger initialization checks are now in the correct order. Plus
frees no longer grab the structure if it is not needed.
2016-07-25 23:26:34 -07:00
Fredric Silberberg
8ac7e44f19
Updates gradle to 2.14.1 ( #186 )
2016-07-25 21:21:34 -07:00
Thad House
a831978cce
Uses the fixed SensorBase functionality in the WPILib ( #185 )
2016-07-21 23:24:06 -07:00
Thad House
8da577b56f
Moves FRCDriverStation to athena folder ( #184 )
2016-07-21 23:22:02 -07:00
Thad House
512ecf6490
Makes SensorBase checks use HAL check methods ( #182 )
2016-07-20 22:47:29 -07:00
Thad House
0901ae0808
Switches the HAL structs to use unique_ptr ( #183 )
2016-07-20 22:05:17 -07:00
Thad House
1ca291f20b
Fixes a missed HAL_Bool change from int32 ( #181 )
2016-07-17 20:54:39 -07:00
Thad House
75eabfee1c
Moves DriverStation HAL code to its own header and definition ( #179 )
...
To allow for future use as a plugin for the HAL simulator.
2016-07-17 19:42:33 -07:00
Tyler Veness
f7c3f13a7f
Improve CircularBuffer documentation ( #180 )
2016-07-16 20:50:19 -07:00
Tyler Veness
57efd13f7f
Replaced PIDController::Initialize() with delegating constructors ( #178 )
2016-07-16 12:50:17 -07:00
Thad House
7ddc153623
Fixes analog gyro casting to float then returning double ( #177 )
2016-07-15 18:13:51 -07:00
Tyler Veness
f9ebd3bde6
Fixed PIDController::GetError() for continuous inputs ( #169 )
...
Closes #31
2016-07-15 13:44:04 -07:00
Thad House
2c911b0f7a
Adds a maximum time based cache to HALControlWord data ( #158 )
...
This is one of the calls with the delayed IPC. In the past, teams have
called an IsMode function so much that their code would start lagging.
This adds a cache, so the data is updated either when new data arrives
and we are notified of it, or after 50ms has passes since the last time
the cache was checked and updated.
2016-07-15 13:39:26 -07:00
Tyler Veness
1bf2d58db1
Reordered DriverStation functions in wpilibc and wpilibj to match wpilibc header ( #166 )
2016-07-14 20:50:38 -07:00
Tyler Veness
c93b5bedf9
Miscellaneous cleanups for wpilibc PID controller ( #175 )
...
* Reorder wpilibc PIDController's SetAbsoluteTolerance() and SetPercentTolerance() implementations to be consistent with header and wpilibj
* Added std:: prefix to fabs() calls in wpilibc PIDController
2016-07-14 13:51:32 -07:00
Thad House
dffaa0abb9
Moves HAL cpp headers from root to HAL directory ( #174 )
...
Could not include the ctre and NetComm folders, as those would require
changing ctre dependancies. Also removes a duplicated FRCComm header
that was not needed.
2016-07-14 00:17:29 -07:00
Tyler Veness
20c6525b1d
Cleaned up wpilibj enums ( #167 )
...
* Converted enumerated constants in wpilibj to enums and made their implementation more consistent
* Reflowed text in JNI calls and updated JNI signatures
2016-07-13 23:39:58 -07:00
Fredric Silberberg
fe7165a8f7
Removed double-add of shared classpath. Fixes #157 . ( #164 )
2016-07-13 22:20:30 -07:00
Thad House
d2aa168f66
Implements Better Error Messages from the HAL ( #172 )
...
* Makes the HAL provide a better error message for certain things.
* Makes Java error messages better
* Updates C++ errors.
* Moves handles header folder to HAL directory
2016-07-13 20:29:28 -07:00
Thad House
05c00430b3
Fixes CPP lint errors added to HAL. ( #173 )
2016-07-13 20:16:45 -07:00
Thad House
5305087162
Fixes a missed float to double change in the HAL. ( #176 )
2016-07-13 19:25:57 -07:00
Tyler Veness
6251697f60
Added Lint task and parallelized format.py ( #161 )
2016-07-12 21:59:09 -07:00
Thad House
ea1a1e6bc3
Makes the CANJaguar error status messages more useful ( #165 )
...
The previous version would just return the class name for the
DigitalOutput port. Now it actually gets the dio port value for better
readability.
2016-07-12 21:53:51 -07:00
Thad House
edf5ecd4a0
Changes HAL Headers to be C compliant. ( #171 )
2016-07-12 21:53:06 -07:00
Tyler Veness
1b1ee7f9f3
Renamed spiGetSemaphore() to spiGetMutex() ( #170 )
2016-07-12 15:11:41 -07:00