Skip to content

taoli9988/sapog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 Cannot retrieve latest commit at this time.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PX4 Sapog

Join the chat at https://gitter.im/Zubax/general

Please refer to the documentation page at https://docs.zubax.com/sapog.

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

Build instructions

Prerequisites:

  • GCC ARM 4.9
  • Python 2.7 or Python 3.2+

Firmware

git submodule update --init --recursive
cd firmware
make RELEASE=1 # RELEASE is optional; omit to build the debug version

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

UAVCAN testing tool

Consider using the UAVCAN GUI Tool instead.

This step is optional. Works only for Linux.

Make sure the libuavcan is installed in the system. If not yet:

cd firmware/libuavcan
mkdir build
cd build
cmake ..
make
sudo make install

Build the UAVCAN testing tool:

cd tools/uavcan_tool
mkdir build
cd build
cmake ..
make

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.

About

Sapog - advanced multiplatform ESC firmware

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 86.3%
  • C++ 12.4%
  • Other 1.3%