Thad House
df4a2c07f0
Checks for system initialization in functions that can be called before creating handle based objects ( #285 )
2016-10-23 10:00:34 -07:00
Tyler Veness
2c94d0ba2f
Cleaned up integer type usage in the HAL ( #192 )
...
Replaced all uses of built-in types except char with stdint.h typedefs and all unsigned types with signed in the HAL
2016-09-06 19:39:28 -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
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
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
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
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
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
Thad House
ea6876e81f
Some general HAL cleanups ( #153 )
2016-07-09 17:38:18 -07:00
Thad House
b637b9ee4c
Prepends all HAL functions with HAL_ ( #146 )
2016-07-09 00:24:26 -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
b45e0917ae
Adds port constants to the HAL ( #130 )
2016-07-02 23:19:14 -07: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
c3908660b1
Switches all HAL Handle errors to be zero ( #100 )
...
As discussed, we don't really need the error checking specifically, as
we are just going to throw exceptions anyway, so this will make sure you
can check for 0 and be sure you catch any handle errors.
2016-06-17 20:21:25 -07:00
Thad House
fc515f4572
Changes HAL Port from a pointer to a handle ( #93 )
...
HAL Port is using a special handle, where the module and pin are bit
shifted straight into the handle. This is one of the few special cases
we have, but for the way port is used it is much cleaner and uses much
less memory. Plus it is generic and not specific to one type.
2016-06-05 15:23:58 -07:00
Thad House
ed7d2d6aa6
Splits the HAL Analog Implementation Files ( #82 )
2016-05-26 22:14:25 -07:00