Difference between revisions of "DevGuide/Settings"

From PaparazziUAV
Jump to navigation Jump to search
(Created page with "'''Settings''' is the generic mechanism that allows to get/set the value of any variable of the embedded code. ==Overview== ===Problem Statement=== Given an embedded program in…")
 
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Box Blue|Merge|
'''Todo: merge with [[Settings]] page'''
}}
'''Settings''' is the generic mechanism that allows to get/set the value of any variable of the embedded code.
'''Settings''' is the generic mechanism that allows to get/set the value of any variable of the embedded code.


Line 11: Line 15:


===Solution===
===Solution===
[[File:settings_overview.png]]
The solution used in Paparazzi consist in describing the variables in a high level xml file, which is then processed to generate embedded code and used by the graphical user interface to display the suitable controls.
 
[[File:settings_overview.png|frame|800px]]


==Persistent Settings==
==Persistent Settings==

Latest revision as of 08:20, 3 August 2014

Merge

Todo: merge with Settings page

Settings is the generic mechanism that allows to get/set the value of any variable of the embedded code.

Overview

Problem Statement

Given an embedded program in C, we want a way to set/get the value of any variable without having to write any ad-hoc code.

  • The variable can be of any base type (e.g. uint16, int32, float) or a structured type (not implemented yet).
  • The variable can be directly accessed (declared in a header) or used through a pair of accessors (e.g. SetVar/GetVar).
  • Typically the variable is manipulated through a graphical user interface on the ground station.
  • The graphical interface can manipulate the variable in a different unit (e.g. the embedded code uses a binary fixed point representation)

Solution

The solution used in Paparazzi consist in describing the variables in a high level xml file, which is then processed to generate embedded code and used by the graphical user interface to display the suitable controls.

Settings overview.png

Persistent Settings

Problem Statement

Solution