Skip to content

Commit

Permalink
added clang-format file and renamed svg folder
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrova committed May 25, 2023
1 parent f1d5808 commit 5049ece
Show file tree
Hide file tree
Showing 32 changed files with 93 additions and 347 deletions.
43 changes: 43 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
BasedOnStyle: Google
AccessModifierOffset: -2
AlignAfterOpenBracket: AlwaysBreak
AlignArrayOfStructures: Right
AlignConsecutiveAssignments:
Enabled: true
AcrossComments: true
AlignCompound: true
AlignConsecutiveBitFields:
Enabled: true
AcrossComments: true
AlignCompound: true
PadOperators: true
AlignConsecutiveDeclarations:
Enabled: true
AcrossComments: true
AlignCompound: true
PadOperators: true
AlignConsecutiveMacros:
Enabled: true
AcrossComments: true
AlignOperands: AlignAfterOperator
AllowShortFunctionsOnASingleLine: Inline
BinPackArguments: false
BinPackParameters: false
BraceWrapping:
AfterClass: true
AfterFunction: true
SplitEmptyFunction: false
BreakBeforeBinaryOperators: All
BreakBeforeBraces: Custom
BreakConstructorInitializers: AfterColon
BreakInheritanceList: AfterColon
ColumnLimit: 120
ConstructorInitializerIndentWidth: 8
ContinuationIndentWidth: 8
DerivePointerAlignment: false
EmptyLineBeforeAccessModifier: Always
IndentWidth: 4
InsertBraces: true
SpacesBeforeTrailingComments: 1
TabWidth: 4
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,27 @@ Clone [QsLog](https://github.com/fada-catec/qslog) on your third-party dependenc

Follow up your ROS distro installation guide: [Melodic](http://wiki.ros.org/melodic/Installation/Ubuntu) or [Noetic](http://wiki.ros.org/noetic/Installation/Ubuntu)

### (Optional) Clang-Format 16

```
sudo add-apt-repository 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal main'
sudo apt update
sudo apt install clang-format-16
```

* **Troubleshooting installing clang-format**

If you end up with a missing key error like this one:
```bash
Err:1 https://apt.llvm.org/focal llvm-toolchain-focal InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 15CF4D18AF4F7421
```
You can solve it by adding that necessary key:
```bash
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 15CF4D18AF4F7421
sudo apt update
```
### PILOTING MAVSDK
On your third-party dependencies folder:
Expand Down
4 changes: 3 additions & 1 deletion data/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ FILE(GLOB_RECURSE DATA_IMAGES "*.png" "*.jpg" "*.svg")
INSTALL(FILES ${DATA_IMAGES}
DESTINATION share/${PROJECT_NAME})


INSTALL(DIRECTORY meshes
DESTINATION share/${PROJECT_NAME})

INSTALL(DIRECTORY svg
DESTINATION share/${PROJECT_NAME})
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Loading

0 comments on commit 5049ece

Please sign in to comment.