Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Feature default values before conf#239

Merged
konglobemeralt merged 15 commits into
devfrom
feature_defaultValuesBefConf
Apr 9, 2020
Merged

Feature default values before conf#239
konglobemeralt merged 15 commits into
devfrom
feature_defaultValuesBefConf

Conversation

@konglobemeralt

Copy link
Copy Markdown
Member

Basically made all uninitialized paramaters use DEFAULT_DEFINES. Please discuss if these are accaptable or not.

@LukasWikander LukasWikander left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have suggested some changes, but I think there should be some use of the default parameter values in datadictionary as well since right now if something fails to find a parameter in the .conf file the result is undefined based on the initialization of GSD.

Comment thread core/inc/util.h Outdated
Comment thread core/inc/util.h Outdated
Comment thread core/src/objectcontrol.c Outdated
Comment thread core/inc/util.h
Comment thread core/inc/util.h
Comment thread core/inc/util.h
konglobemeralt and others added 2 commits April 3, 2020 08:19
Co-Authored-By: LukasWikander <[email protected]>
Co-Authored-By: LukasWikander <[email protected]>
@LukasWikander

Copy link
Copy Markdown
Collaborator

Guessing the formatting check doesn't pass, as I see no reason why this wouldn't compile.

@LukasWikander

Copy link
Copy Markdown
Collaborator

I have created a ticket for using these values in DataDictionary.

@LukasWikander

LukasWikander commented Apr 8, 2020

Copy link
Copy Markdown
Collaborator

"/opt/tomcat/.jenkins/workspace/tro_feature_defaultValuesBefConf/core/src/objectcontrol.c:194:25: error: ‘DEFAULT_ORIGO_HEADING’ undeclared (first use in this function)
dbl OriginHeadingDbl = DEFAULT_ORIGO_HEADING;"

-- Jenkins, 2020

@konglobemeralt konglobemeralt dismissed LukasWikander’s stale review April 8, 2020 07:55

Forgot to change defines when your old suggestion was applied. Should build now.

@konglobemeralt konglobemeralt merged commit 73fdcb4 into dev Apr 9, 2020
@konglobemeralt konglobemeralt deleted the feature_defaultValuesBefConf branch April 9, 2020 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants