All Projects → PX4 → Sapog

PX4 / Sapog

Licence: bsd-3-clause
Sapog - advanced multiplatform ESC firmware

Programming Languages

c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to Sapog

Libuavcan
Portable reference implementation of the UAVCAN protocol stack in C++ for embedded systems and Linux.
Stars: ✭ 213 (+53.24%)
Mutual labels:  robotics, drones, uav, can-bus
Libcanard
A compact implementation of the UAVCAN/CAN protocol in C for high-integrity real-time embedded systems
Stars: ✭ 151 (+8.63%)
Mutual labels:  robotics, uav, can-bus
public regulated data types
Regulated DSDL definitions for Cyphal (standard and third-party)
Stars: ✭ 62 (-55.4%)
Mutual labels:  uav, drones, can-bus
pyuavcan
Python implementation of the Cyphal protocol stack.
Stars: ✭ 91 (-34.53%)
Mutual labels:  uav, drones, can-bus
Cylon
JavaScript framework for robotics, drones, and the Internet of Things (IoT)
Stars: ✭ 3,862 (+2678.42%)
Mutual labels:  robotics, drones
Librepilot
This is the GitHub mirror for the LibrePilot source code. The main development is taking place at https://bitbucket.org/librepilot
Stars: ✭ 260 (+87.05%)
Mutual labels:  drones, uav
Px4 Autopilot
PX4 Autopilot Software
Stars: ✭ 5,090 (+3561.87%)
Mutual labels:  drones, uav
Ardupilot
ArduPlane, ArduCopter, ArduRover, ArduSub source
Stars: ✭ 6,637 (+4674.82%)
Mutual labels:  robotics, uav
YAMSPy
Yet Another Multiwii Serial Protocol Python Interface... for Betaflight, iNAV, etc...
Stars: ✭ 47 (-66.19%)
Mutual labels:  uav, drones
Holodeck
High Fidelity Simulator for Reinforcement Learning and Robotics Research.
Stars: ✭ 513 (+269.06%)
Mutual labels:  robotics, drones
Redtail
Perception and AI components for autonomous mobile robotics.
Stars: ✭ 832 (+498.56%)
Mutual labels:  robotics, drones
awesome-drones
A curated list of Awesome Drones resources
Stars: ✭ 44 (-68.35%)
Mutual labels:  uav, drones
Drona
Drona is a programming framework for building safe robotics systems
Stars: ✭ 26 (-81.29%)
Mutual labels:  robotics, drones
Densesurfelmapping
This is the open-source version of ICRA 2019 submission "Real-time Scalable Dense Surfel Mapping"
Stars: ✭ 438 (+215.11%)
Mutual labels:  robotics, drones
UDTStudio
UniSwarm Tools for UDT interface and CANOpen in Qt5
Stars: ✭ 13 (-90.65%)
Mutual labels:  robotics, can-bus
Onboard Sdk
DJI Onboard SDK Official Repository
Stars: ✭ 669 (+381.29%)
Mutual labels:  robotics, uav
Paparazzi
Paparazzi is a free and open-source hardware and software project for unmanned (air) vehicles. This is the main software repository.
Stars: ✭ 1,178 (+747.48%)
Mutual labels:  drones, uav
Holodeck Engine
High Fidelity Simulator for Reinforcement Learning and Robotics Research.
Stars: ✭ 48 (-65.47%)
Mutual labels:  robotics, drones
Rvd
Robot Vulnerability Database. An archive of robot vulnerabilities and bugs.
Stars: ✭ 87 (-37.41%)
Mutual labels:  robotics, drones
Gaas
Generalized Aviation: Open source autonomous aviation software platform, designed for fully autonomous drones and flying cars.
Stars: ✭ 1,377 (+890.65%)
Mutual labels:  drones, uav

PX4 Sapog

Forum Forum

Documentation

Sapog v2 Reference Manual is the main piece of project documentation; make sure to read it. Additional documentation and related resources can be found at the Zubax Knowledge Base.

Change Log

v2.3

  • Configuration parameter mot_i_shunt_mr has been removed; now the firmware detects the shunt resistance based on the HW ID pin states.
  • Migrated from GCC 4.9 to GCC 7.2.

v2.2

  • Added a low-pass filter on the estimated angular speed output. This change led to improved performance on motors with severe phase asummetry.
  • Improved RGB LED indication in the bootloader.

v2.1

  • Fixed stability issues at extremely high RPM (>10k mechanical RPM for 14 pole motor).
  • Default PWM frequency set to 60 kHz.

v2.0

  • Completely new, more robust spin up algorithm. Supports smooth start-up from standstill as well as picking up the rotation if the rotor is already spinning.
  • Significantly more reliable operation during rapid acceleration and deceleration, especially at high advance angles.
  • Wider PWM frequency range: 20...75 kHz.
  • Raised the maximum RPM limit; the new maximum for 14 pole motor exceeds 14000 mechanical RPM.

Firmware

If you're not running Linux or OSX natively, you can use Bistromathic - a Linux virtual machine pre-configured for embedded development.

Bootloader

The bootloader allows to update the firmware via the standard UAVCAN firmware upgrade protocol, which is documented at uavcan.org. No additional steps are needed to build the bootloader - the build system will build it automatically together with the firmware. The resulting *.elf file will be extended with the bootloader too, so it can be flashed directly into an factory fresh MCU.

Build Instructions

Prebuilt binaries are available at https://files.zubax.com/products/io.px4.sapog/.

Prerequisites:

  • GCC ARM 7.2
  • Python 3.2+
  • Linux or OSX host computer (Windows is not supported)
git submodule update --init --recursive
cd firmware
make RELEASE=1 # RELEASE is optional; omit to build the debug version

The build outputs will be stored into build/:

  • *.application.bin - built application binary, suitable for uploading via the bootloader;
  • *.compound.bin - application binary together with the bootloader, in one image;
  • compound.elf - application ELF together with the bootloader, in one file; this option is recommended for debugging.

Execute ./blackmagic_flash.sh [portname] from the tools directory to flash the firmware with a Black Magic Debug Probe.

Development

We recommend Eclipse for IDE, but any other IDE will work equally well. If you prefer Eclipse and need GUI debugging, avoid upgrading to any version newer than Luna, since in newer releases GUI GDB debugging of embedded targets is broken. Otherwise we recommend to use the latest Eclipse together with CLI GDB client. It's inconvenient, but unlike Eclipse it works reliably.

When editing code, please follow the PX4 coding conventions.

Hardware Timer Usage

  • TIM1 - 3-phase FET bridge PWM
  • TIM2 - ADC synchronization, works in lockstep with TIM1
  • TIM3 - RGB LED PWM
  • TIM4 - Hard real time callout interface for motor control logic (preempts the kernel)
  • TIM5 - RC PWM input capture
  • TIM6 - High precision timestamping for motor control logic (sub-microsecond resolution, never overflows)
  • TIM7 - General purpose timestamping

Hardware

Reference hardware design is published under CC BY-SA 3.0 in the PX4 Hardware repository.

Known commercially available compatible hardware designs are listed below.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].