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
Thad House
40365faeda
Adds a static mutex to notifiers to stop destructor race condition ( #204 )
2016-08-15 19:56:32 -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
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
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
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
Thad House
7ddc153623
Fixes analog gyro casting to float then returning double ( #177 )
2016-07-15 18:13:51 -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
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
1b1ee7f9f3
Renamed spiGetSemaphore() to spiGetMutex() ( #170 )
2016-07-12 15:11:41 -07:00
Thad House
b51e85ae26
Switches HAL to fixed length signed integers, and adds our own HAL_Bool Type ( #155 )
...
* Switches HAL to fixed length signed integers, and adds our own HAL_Bool type
* Replaces HAL Floats with Doubles
Doubles are just as fast as floats with optimizations turned on, so
switches to all doubles. All made doubles for consistency.
* Prepends HAL/ to HAL include files. Also fixes some range errors
2016-07-12 10:45:14 -07:00
Thad House
4a98e68815
Moves the DS new data wait calls down to the HAL. ( #156 )
2016-07-10 23:10:05 -07:00
Tyler Veness
0cb288ffba
Fixes warnings thrown by cpplint.py ( #154 )
...
* Fixed cpplint.py [runtime/int] warnings
* Fixed cpplint.py [readability/casting] warnings
* Fixed cpplint.py [readability/namespace] warnings
* Fixed cpplint.py [readability/braces] warnings
* Fixed cpplint.py [whitespace/braces] warnings
* Fixed cpplint.py [runtime/explicit] warnings
* Fixed cpplint.py [runtime/printf] warnings
* Fixed cpplint.py [readability/inheritance] warnings
* Fixed cpplint.py [whitespace/tab] warnings
* Fixed cpplint.py [build/storage_class] warnings
* Fixed cpplint.py [readability/multiline_comment] warnings
* Fixed cpplint.py [whitespace/semicolon] warnings
* Fixed cpplint.py [readability/check] warnings
* Fixed cpplint.py [runtime/arrays] warnings
* Ran format.py
2016-07-10 17:47:44 -07:00
Tyler Veness
e44a6e227a
Refactored wpilibj HAL JNI to simplify generating it from HAL headers ( #109 )
...
wpilibj FRCNetworkCommunication.java is now generated from HAL headers and was renamed to FRCNetComm.java
2016-07-10 16:24:57 -07:00
Thad House
ea6876e81f
Some general HAL cleanups ( #153 )
2016-07-09 17:38:18 -07:00
Thad House
43a2eccdc9
Finishes Prefix Renames ( #152 )
2016-07-09 01:12:37 -07:00
Thad House
b637b9ee4c
Prepends all HAL functions with HAL_ ( #146 )
2016-07-09 00:24:26 -07:00
Thad House
5ad28d58ec
Switches PWMs to do scaling at the HAL level. ( #143 )
2016-07-08 21:29:29 -07:00
Thad House
be2647d44e
Switches Java to use HAL Constants ( #145 )
2016-07-08 00:08:07 -07:00
Thad House
4a3e3a6324
Changes DigitalSource API for HAL ease of use ( #144 )
2016-07-07 21:43:55 -07:00
Thad House
7597e3c274
Switches handle resources to dynamic arrays ( #142 )
2016-07-07 21:32:41 -07:00
Thad House
0a983eeeb8
Moves Gyros to the HAL ( #131 )
2016-07-07 21:31:45 -07:00
Thad House
72455280a9
Removes unneeded resource includes from WPILibC files ( #134 )
2016-07-03 23:18:45 -07:00
Thad House
ea95bb85aa
Adds Constants from new constants class to encoders ( #133 )
2016-07-03 21:52:49 -07:00
Thad House
fb865d3ee7
Adds a special exception and status message for a handle error ( #127 )
2016-07-03 17:27:06 -07:00
Thad House
36ac37db8c
Moves Encoders to Handles and Moves WPILib Encoders to HAL ( #124 )
2016-07-03 15:22:22 -07:00
Thad House
b45e0917ae
Adds port constants to the HAL ( #130 )
2016-07-02 23:19:14 -07:00
Thad House
0e127679c1
Removes some unused variables from DigitalInternal ( #128 )
2016-07-02 16:33:19 -07:00
Thad House
cf29d4560b
Moves HAL PCM objects to header and HAL namespace ( #129 )
2016-07-02 11:58:49 -07:00
Thad House
8c4ad62422
Switches Solenoids to Handles ( #126 )
2016-07-02 09:24:54 -07:00
Thad House
62c217cd01
Switches compressor to handles ( #125 )
2016-07-02 08:22:44 -07:00
Thad House
0f105a26f7
Switches Counters to Handles ( #123 )
2016-07-01 00:29:08 -07:00
Thad House
47694ef810
Switches DigitalPWM to Handles ( #121 )
2016-06-30 23:43:00 -07:00
Thad House
3593ecb17e
Switches PWM and DIO to Handles ( #120 )
2016-06-30 21:39:09 -07:00
Thad House
9b2af0d090
Switches relays to handles ( #119 )
2016-06-29 19:58:14 -06:00
Thad House
e8e052712e
Switches AnalogInputs and AnalogTriggers to Handles ( #117 )
...
Results in a breaking change to AnalogTrigger int constructor. If a user wants
multiple AnalogTriggers, they must use the AnalogInput constructor.
2016-06-27 21:32:30 -07:00
Thad House
77a1af44c4
Removes freePort from the HAL ( #116 )
...
It was a no-op, and most likely in the future it will be that way too.
Removing to clean up the API.
2016-06-27 13:38:33 -07:00
Thad House
e1d4845ccd
Move Analog Outputs to Handles ( #112 )
2016-06-27 11:32:40 -07:00
PatrickPenguinTurtle
95d40ed01f
Fixed issue with digital outputs used as pwm on mxp ( #14 )
...
When a digital output object that was tied to an mxp pin had enable pwm called on it
it would pwm on a pin 6 lower
(although if this wasn't an mxp pin it wouldn't do anything at all.)
Fixed in Digital.cpp by adding 6 if it is an MXP pin in setPWMOutputChannel()
This should fix the CanJaguar test because when digitalOutputs used as PWM
were freed, the PWM generator was set to the number of pins, which meant it
was actually outputing on pin 20.
Change-Id: Ib48db3e6e3bf78659622145969d24011cc231ea6
Updated Hal to include some documentation about swaping mxp pins.
Cannot find NI related documentation as to the pin numbers being wrong though
Change-Id: I71d84431dc9bc7bf22aa29b6633e49723311b5f7
fixed formatting on changed files
Change-Id: I5b7c16cd798132b6b20c1d03f334a95b42d2ee11
2016-06-24 19:46:43 -07:00
Thad House
046e043c4e
Moves Interrupts over to Handles instead of pointers ( #99 )
2016-06-20 23:22:48 -07:00
Tyler Veness
daa0260a4e
Deduplicated UsageReporting definitions ( #104 )
2016-06-19 00:15:57 -07:00