Difference between revisions of "Developer Guide"

From PaparazziUAV
Jump to navigation Jump to search
 
(46 intermediate revisions by 11 users not shown)
Line 1: Line 1:
== A great resource for in-depth information. ==
==Introduction==
By the time you land on this page, you probably want to enhance the Paparazzi project, that is really good for you karma and well appriciated. You are welcomed to enhance and extend this documentation.


*[[Contributing|Contributing<br><small>how to contribute</small>]]
By the time you land on this page, you probably want to enhance the Paparazzi project, that is really good for your karma and really appreciated by the Paparazzi community. We welcome contributions and improvements to the documentation.
*[[DevGuide/Communications|Communications<br><small>how telemetry and datalink is done</small>]]
[[Image:FixIt.jpg|right|FixIt]]
*[[DevGuide/Server_GCS_com|Server-GCS communications<br><small>how the Server and the Ground Control Station interact with each other</small>]]
*[[DevGuide/Values|Values<br><small>a short walk through the system</small>]]
*[[DevGuide/USBDownload|USB Download<br><small>how the Paparazzi USB bootloader works</small>]]
*[[BootloaderUploadHowTo|Upload Bootloader<br><small>How to upload the Bootloader to the AP board</small>]]
*[[DevGuide/JTAG-Debug|JTAG-Debug<br><small>using JTAG debug for LPC2148</small>]]
*[[Dev/Debugging|Debug Lisa<br><small>using GDB to debug software on Lisa boards</small>]]
*[[DevGuide/DesignOverview|Design Overview<br><small>Attempt at a longer walk through the airborne code architerture</small>]]
*[[FirmwareArchitecture|Firmware Architecture<br><small>Attempt at brief overview of the firmware architecture with modules and subsystems</small>]]
*[[DevGuide/USB-Serial|USB-Serial<br><small>using the USB instead of the UART for telemetry</small>]]
*[[Install_paparazzi_and_everything_from_scratch| Toolchain<br><small>Install Paparazzi ARM toolchain and IVY from scratch</small>]]
*[[DevGuide/CodeEditors|Code Editing<br><small>How to setup an IDE for OCAML and C and C++</small>]]
*[[DevGuide/LearningToProgram|Learning to Program<br><small>Improve your Paparazzi code in OCAML,C,C++ and Python</small>]]


See also [[Doxygen]] for documentation close to the code.


*[[AirborneCodingStyle]]
==[[Contributing|Contributing]]==
*[[ControlTheory]]
You would like to contribute, but are not sure how, then [[Contributing|this is the page to visit]]
*[[Reference/bootloader]]
 
*[[Altitude_definitions]]
==[[DevGuide/CodeEditors|Code Editing]]==
*[[Abi]]
How to setup your IDE for use with the source code
*[[DevGuide/StateInterface]]
 
==[[DevGuide/LearningToProgram|Learning to Program]]==
Improve your Paparazzi code in OCAML,C,C++ and Python
 
==[[DevGuide/AircraftBuildProcess|Aircraft build process and code generation]]==
Description of the (rather complicated) build system and code generation regarding the airborne firmwares
 
==[[DevGuide/DesignOverview|Design Overview]]==
Attempt at a longer walk through the airborne code architecture
 
==[[FirmwareArchitecture|Firmware Architecture]]==
Attempt at brief overview of the firmware architecture with modules and subsystems
 
==[[DevGuide/Communications|Communications]]==
How telemetry and datalink is done
 
==[[DevGuide/CommunicationsNew|Communications (Proposed New system)]]==
How the telemetry and datalink works
 
==[[DevGuide/Server_GCS_com|Server-GCS communications]]==
How the Server and the Ground Control Station interact with each other
 
==[[DevGuide/Values|Values]]==
A short walk through the system and how values are handled
 
==[[DevGuide/Settings|Settings]]==
Settings is the generic mechanism that allows to set and get the value of any variable of the embedded code.
 
==[[DevGuide/Mathlib|Paparazzi Math Library]]==
The custom Paparazzi math library written in C and how to use it in external programs
 
==[[Reference/bootloader]]==
All of the questions and answers about the bootloader, but were afraid to ask
 
===[[Lpc21iap|LPC USB firmware]]===
All of the answers to the Paparazzi USB bootloader of question you never dared to ask
 
====[[Lpc21BootloaderUpload|Upload Bootloader for LPC21xx]]====
How to [[[[Lpc21BootloaderUpload|upload the Bootloader]] to a LPC2148 processor based Autopilot board like the TWOG
 
===[[Luftboot|Upload the luftboot bootloader]]===
How to upload the Bootloader to a STM32 processor based Autopilot board like the [[Elle0]] or [[Lisa/M]]
 
===[[DFU|Upload with DFU (with native or custom dfu bootloader)]]===
Using the native (embedded in ROM) or custom (e.g. [[Luftboot]] or [[KroozSD#Bootloader|KroozSD]]==) bootloader to upload Paparazzi code
 
===[[STLink|Upload with STLink via SWD (without Bootloader)]]===
General ST-LinkV2 page.
 
==[[DevGuide/GDB_OpenOCD_Debug|GDB OpenOCD Debug]]==
Using GDB or OpenOCD to directly flash and debug Hardware
 
==[[DevGuide/USB-Serial|USB-Serial]]==
Using a USB connection instead of UART for use with telemetry
 
==[[ControlTheory]]==
All [[ControlTheory|information you are looking for about the harsh reality of Control Theory]] needed to let your aircraft fly
 
==[[Demystified/Altitude and Height|Altitude and Height]]==
Altitude and Height demystified
 
==[[Abi|AirBorne Interface ABI]]==
Presentation of the airborne communication system
 
==[[DevGuide/StateInterface]]==
A stateinterface is a stateinterface is a stateinterface, [[DevGuide/StateInterface|poems aside read more about what the stateinterface entails here]]
 
==[[RT_Paparazzi]]==
[[RT_Paparazzi|Real Time Paparazzi]] how-to and guidelines
 
==[[Builds|Continuous Integration builds]]==
Info on the [[Builds|Continuous Integration builds]] (CI) server
 
==Coding Standards==
JPL (Jet Propulsion Laboratory) released their own coding standards (can be downloaded for free here: [http://lars-lab.jpl.nasa.gov/JPL_Coding_Standard_C.pdf JPL C Coding Standards and Guidelines]). They include MISRA-C rules and directives, but add their own rules on top of that. They also specify different levels of compliance (LOC) because not always it is necessary to comply with all of the rules. Anyway, they are making things that go to space, so we can definitely learn something about good coding practices from them.
 
==[[DevGuide/Releasing]]==
Info for maintainers on how to create a new release.


[[Category:Developer_Documentation]]
[[Category:Developer_Documentation]]

Latest revision as of 07:42, 28 November 2017

Introduction

By the time you land on this page, you probably want to enhance the Paparazzi project, that is really good for your karma and really appreciated by the Paparazzi community. We welcome contributions and improvements to the documentation.

FixIt

See also Doxygen for documentation close to the code.

Contributing

You would like to contribute, but are not sure how, then this is the page to visit

Code Editing

How to setup your IDE for use with the source code

Learning to Program

Improve your Paparazzi code in OCAML,C,C++ and Python

Aircraft build process and code generation

Description of the (rather complicated) build system and code generation regarding the airborne firmwares

Design Overview

Attempt at a longer walk through the airborne code architecture

Firmware Architecture

Attempt at brief overview of the firmware architecture with modules and subsystems

Communications

How telemetry and datalink is done

Communications (Proposed New system)

How the telemetry and datalink works

Server-GCS communications

How the Server and the Ground Control Station interact with each other

Values

A short walk through the system and how values are handled

Settings

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

Paparazzi Math Library

The custom Paparazzi math library written in C and how to use it in external programs

Reference/bootloader

All of the questions and answers about the bootloader, but were afraid to ask

LPC USB firmware

All of the answers to the Paparazzi USB bootloader of question you never dared to ask

Upload Bootloader for LPC21xx

How to [[upload the Bootloader to a LPC2148 processor based Autopilot board like the TWOG

Upload the luftboot bootloader

How to upload the Bootloader to a STM32 processor based Autopilot board like the Elle0 or Lisa/M

Upload with DFU (with native or custom dfu bootloader)

Using the native (embedded in ROM) or custom (e.g. Luftboot or KroozSD==) bootloader to upload Paparazzi code

Upload with STLink via SWD (without Bootloader)

General ST-LinkV2 page.

GDB OpenOCD Debug

Using GDB or OpenOCD to directly flash and debug Hardware

USB-Serial

Using a USB connection instead of UART for use with telemetry

ControlTheory

All information you are looking for about the harsh reality of Control Theory needed to let your aircraft fly

Altitude and Height

Altitude and Height demystified

AirBorne Interface ABI

Presentation of the airborne communication system

DevGuide/StateInterface

A stateinterface is a stateinterface is a stateinterface, poems aside read more about what the stateinterface entails here

RT_Paparazzi

Real Time Paparazzi how-to and guidelines

Continuous Integration builds

Info on the Continuous Integration builds (CI) server

Coding Standards

JPL (Jet Propulsion Laboratory) released their own coding standards (can be downloaded for free here: JPL C Coding Standards and Guidelines). They include MISRA-C rules and directives, but add their own rules on top of that. They also specify different levels of compliance (LOC) because not always it is necessary to comply with all of the rules. Anyway, they are making things that go to space, so we can definitely learn something about good coding practices from them.

DevGuide/Releasing

Info for maintainers on how to create a new release.