-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Expose VEXos' time and date functions (#127)
* Expose VEXos' get time and date functions * wip: add clock_gettime impl * wip: fix errors with clock_gettime impl * wip: add _gettimeofday impl * Push code to build test for time implementation * Add integer timestamp to the generated timestamp info * Fix compile errors * Fix compile errors 2 * Change _PROS_COMPILE_TIMESTAMP_INT to be an actual integer * Test linking against _pros_ld_timestamp.o variables * Test linking against _pros_ld_timestamp.o variables 2 * Test linking against _pros_ld_timestamp.o variables 3 * Test linking against _pros_ld_timestamp.o variables 4 * Convert _PROS_COMPILE_TIMESTAMP_INT back into a string * Try using HOT_TABLE rather than the timestamp directly * Make _PROS_COMPILESTAMP_INT a weak symbol * Fix compiler error * Attempt to use functions to subvert linking issues * Try switching _PROS_COMPILE_TIMESTAMP_INT to an integer again * Revert back to hacky callback solution * Fix compile error * Fix compile error 2 * Fix compile error 3 * Fix compile error 4 * Fix? * Fix microsecond calculation * Account for timezones when generating _PROS_COMPILE_TIMESTAMP_INT * Fix formatting and accidental changes * Commit for applying template * Fix compilation errors and begin implementing clock_settime() * Update firmware * Update common.mk to allow POSIX functions in time.h * Add CLOCK_MONOTONIC to clock_gettime() * Add comment * Fix version Co-authored-by: Alex Brooke <[email protected]> Co-authored-by: WillXuCodes <[email protected]> Co-authored-by: Richard Stump <[email protected]>
- Loading branch information
1 parent
2cf5fb2
commit a1e0d24
Showing
7 changed files
with
159 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,6 +87,7 @@ void opcontrol() { | |
|
||
left_mtr = left; | ||
right_mtr = right; | ||
|
||
pros::delay(20); | ||
} | ||
} |
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 |
---|---|---|
@@ -1 +1 @@ | ||
3.7.1 | ||
3.7.1 |