PX4-Autopilot
paparazzi
PX4-Autopilot | paparazzi | |
---|---|---|
26 | 12 | |
7,707 | 2,185 | |
2.8% | 1.7% | |
9.9 | 9.5 | |
3 days ago | 3 days ago | |
C++ | Kotlin | |
BSD 3-clause "New" or "Revised" License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
PX4-Autopilot
-
Kalman Filter Tutorial: Kalman Filter from the Ground Up
They are widely used in narrow circles :)
Two of (arguably the best) open source RC aircraft flight controllers (ArduPilot and PX4) are using extended Kalman filters in their state estimators (essentially sensor fusion that provides attitude/position estimate):
https://github.com/ArduPilot/ardupilot/tree/master/libraries...
https://github.com/PX4/PX4-Autopilot/blob/main/src/modules/e...
I'm not that familiar with cleanflight/betaflight/inav scene to know what the FPV racer flight controllers use.
- Does anyone know about a good avionics related open source project for learning purposes?
-
Power electronics and embedded systems
Actually, even the General Aviation pilots who actually manually manage their own load-shedding during a mission would quite like automated power distribution and management systems... and if you felt like taking on that sort of work as a hobby project to cut your teeth, I bet the guys at the (open-source) PX4 project would bite your hand off...
-
DJI drone flight log viewer
As a flight pilot engineer you have to find a sweet spot and balance logging too much and too little. Writing logs to an SD card has huge costs that come with it, that's why you don't want to log too much. Logging too little and you can't debug issues later on properly.
PX4 also has lots of "topics" logged at around 1/10, e.g. hover thrust estimate every 100ms:
https://github.com/PX4/PX4-Autopilot/blob/main/src/modules/l...
- Has anyone programmed a drone?
-
Help me choose a flight controller.
Okay, but nowadays most people talk about “Pixhawk” as an open-standard hardware platform and PX4 as the software. The source code is at https://github.com/PX4/PX4-Autopilot and they call themselves “PX4 Autopilot Software”.
-
Best way to start getting involved with open source projects?
As an example, PX4 is a popular open source drone autopilot software: https://github.com/PX4/PX4-Autopilot
-
PX4-Autopilot VS uas-catpilot - a user suggested alternative
2 projects | 16 Jan 2023
- PX4 Autpilot issue witch my diy aircraft
-
Having trouble finding embedded engineers, should we even be looking for embedded engineers or more optimization experts?
I am working as a Remote Embedded Software developer for quite a while now and there is no obstacle in Remote work. If I am missing anything, parts are arriving in under the week. That said, I never had a better work-life balance in the last 10 years. Anyone who said Embedded is not possible to do remotely just check any open source flight controller project (in my case PX4).
paparazzi
- paparazzi 1.3.0 released
-
Building Reddit’s design system for Android with Jetpack Compose
Component API tests are written for all components in the library. These are Paparazzi snapshot tests that are parameterized to cover all the combinations of values for the properties in the API of a given component. Additionally, they include as parameters: color theme, layout direction, and optionally other properties that may be relevant to the component under test (e.g., font scale).
-
Compose & Paparazzi: Automatically find @Preview composables at runtime
Looks really nice. Sadly, I wasn't able to test it because it doesn't support application module
- Paparazzi 1.2 is out
-
How do you guys test the UI of your app?
Curious what you mean by hilt refuses to work and what you have tried? Usually though if I'm testing the UI of the app, I might use paparazzi for screenshot tests because it doesn't have to run the test on device. Then for a UI integration test for navigation and user flows, use espresso and replace the network data sources with mocks which in your case would be with hilt android test rule and test install in annotation .
-
Improving snapshot tests with Paparazzi
/** * Finds all files in the components module which have Compose previews * and generates Paparazzi screenshot tests for them. * * The generated tests can then be used to record screenshots with * ./gradlew components:recordPaparazziInternalDebug * * To verify that the current implementation matches the recorded screenshots * ./gradlew components:verifyPaparazziInternalDebug */ fun main() { val path = System.getProperty("user.dir") ?: error("Can't get user dir") // Paparazzi does not currently work in the app module: https://github.com/cashapp/paparazzi/issues/107 // For now this is hardcoded to only check files in the components module. // If we pull our compose files out of the app module to a separate module this code has to be updated. File(path).walk().filter { it.path.contains("/components/src/main/java") && it.extension == "kt" }.forEach { if (it.readText().contains("@Preview")) { processFileWithPreviews(it) } } } /** * Reads the given file, finds the names of all the functions annotated with @Preview * and uses them to generate a Paparazzi test file with one test for each preview. */ private fun processFileWithPreviews(file: File) { val lines = file.readLines() val previewNames = mutableListOf() var saveNextFunctionName = false var packageName = "" lines.forEachIndexed { i, line -> if (i == 0) { packageName = line.split(" ").last() } if (line.contains("@Preview")) { saveNextFunctionName = true } if (saveNextFunctionName && line.startsWith("fun ")) { previewNames += line.split(" ")[1].removeSuffix("()") saveNextFunctionName = false } } val pathString = file.path.replace("src/main", "src/test").split("java").first() + "java" val testFilePath = pathString.toPath() generatePaparazziTest(packageName, file.nameWithoutExtension + "PaparazziTest", testFilePath, previewNames) } fun generatePaparazziTest(packageName: String, fileName: String, path: Path, previewNames: List) { val classBuilder = TypeSpec.classBuilder(fileName) .superclass(PaparazziTest::class) .addAnnotation( AnnotationSpec.builder(Suppress::class) // KotlinPoet does not let us remove redundant public modifiers or Unit return types for the functions, // but we don't mind for generated code as long as the tests work .addMember("\"RedundantVisibilityModifier\", \"RedundantUnitReturnType\"") .build() ) previewNames.forEach { classBuilder.addFunction( FunSpec.builder(it.removeSuffix("Preview").usLocaleDecapitalize()) .addStatement("paparazziRule.snapshot { $it() }") .addAnnotation(Test::class) .build() ) } val testFile = FileSpec.builder(packageName, fileName) .addType(classBuilder.build()) .addFileComment("AUTO-GENERATED FILE by generate_paparazzi_tests.kt\nDO NOT MODIFY") .build() val nioPath = path.toNioPath() testFile.writeTo(nioPath) }
- Do you do test-based capture & publish for QA? (Espresso, JUnit,..)
- Paparazzi 1.0 is out
-
Mockito and non-debuggable testBuildTypes
The good thing is, Square got us covered once more, in regards to the flaky emulators, by providing a screenshot-testing library that does not require an emulator: https://cashapp.github.io/paparazzi/
- Most Efficient Way of Testing Layouts on Various Aspect Ratios/Pixel Densities/Viewport/Resolutions
What are some alternatives?
ardupilot - ArduPlane, ArduCopter, ArduRover, ArduSub source
inav - INAV: Navigation-enabled flight control software
Shot - Screenshot testing library for Android
ESP32 - DroneBridge for ESP32. A transparent short range wifi based telemetry (serial to WiFi) link. Support for MAVLink, MSP, LTM (iNAV) or any other protocol
Mockito - Most popular Mocking framework for unit tests written in Java
tello-ros2 - ROS2 node for DJI Tello and Visual SLAM for mapping of indoor environments.
dropshots - Easy on-device screenshot testing for Android.
paparazzi - Paparazzi is a free and open-source hardware and software project for unmanned (air) vehicles. This is the main software repository.
linorobot - Autonomous ground robots (2WD, 4WD, Ackermann Steering, Mecanum Drive)
kotlinpoet - A Kotlin API for generating .kt source files.