AGHSEagleRobotics / frc1388-2015

Automatically exported from code.google.com/p/frc1388-2015
1 stars 0 forks source link

Create GitVersion.h #19

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Update the project so that a GitVersion.h file is created, as was done in the 
last couple years.

Print out the git version and build date in RobotInit().  This will give us a 
way to determine which code version is loaded on the robot.

Note, in the past we've modified the makefile to create GitVersion.h.  This is 
not the right way to create that file.  The proper way is to use a Pre-Build 
script in the project properties (C/C++ Build > Settings > Build Steps).

Original issue reported on code.google.com by jtec...@gmail.com on 12 Jan 2015 at 3:15

GoogleCodeExporter commented 8 years ago

Original comment by Thomk...@gmail.com on 16 Jan 2015 at 3:04

GoogleCodeExporter commented 8 years ago

Original comment by NotJoeyK...@gmail.com on 6 Feb 2015 at 2:52

GoogleCodeExporter commented 8 years ago

Original comment by NotJoeyK...@gmail.com on 7 Feb 2015 at 5:47

GoogleCodeExporter commented 8 years ago

Original comment by NotJoeyK...@gmail.com on 10 Feb 2015 at 2:37

GoogleCodeExporter commented 8 years ago

Original comment by NotJoeyK...@gmail.com on 13 Feb 2015 at 8:59

GoogleCodeExporter commented 8 years ago
Added functionality for:
-Git Version
-Git Tag
-Commit Date
-Git Status (if its modified or not)

Original comment by NotJoeyK...@gmail.com on 20 Feb 2015 at 3:46

GoogleCodeExporter commented 8 years ago
I don't see where the git version etc is printed out?  It should ideally be in 
a printf in RobotInit() or other appropriate place.

It will presumably also be used on the smart dashboard, so it might be best to 
create global variables which use the info in GitVersion.h.  See last year's 
code for an example.

Original comment by jtec...@gmail.com on 20 Feb 2015 at 5:30