mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-14 00:03:34 +08:00
make format
This commit is contained in:
@@ -136,8 +136,8 @@ private:
|
|||||||
uint8_t _target_esc{255}; // from vehicle_command param1
|
uint8_t _target_esc{255}; // from vehicle_command param1
|
||||||
uint8_t _current_esc{0}; // index into _gpio_pins[]
|
uint8_t _current_esc{0}; // index into _gpio_pins[]
|
||||||
uint8_t _esc_count{0};
|
uint8_t _esc_count{0};
|
||||||
uint32_t _gpio_pins[MAX_ESCS]{};
|
uint32_t _gpio_pins[MAX_ESCS] {};
|
||||||
uint8_t _device_info[am32::DEVICE_INFO_SIZE]{};
|
uint8_t _device_info[am32::DEVICE_INFO_SIZE] {};
|
||||||
|
|
||||||
// --- firmware file ---
|
// --- firmware file ---
|
||||||
int _fw_fd{-1};
|
int _fw_fd{-1};
|
||||||
|
|||||||
@@ -44,7 +44,8 @@
|
|||||||
#include <px4_platform_common/micro_hal.h>
|
#include <px4_platform_common/micro_hal.h>
|
||||||
#include <drivers/drv_hrt.h>
|
#include <drivers/drv_hrt.h>
|
||||||
|
|
||||||
namespace am32 {
|
namespace am32
|
||||||
|
{
|
||||||
|
|
||||||
// Bootloader handshake packet (8 zero bytes + 0x0D + "BLHeli" + CRC)
|
// Bootloader handshake packet (8 zero bytes + 0x0D + "BLHeli" + CRC)
|
||||||
static const uint8_t boot_init[] = {
|
static const uint8_t boot_init[] = {
|
||||||
|
|||||||
@@ -44,7 +44,8 @@
|
|||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
namespace am32 {
|
namespace am32
|
||||||
|
{
|
||||||
|
|
||||||
// AM32 bootloader command bytes
|
// AM32 bootloader command bytes
|
||||||
static constexpr uint8_t CMD_RUN = 0x00;
|
static constexpr uint8_t CMD_RUN = 0x00;
|
||||||
|
|||||||
Reference in New Issue
Block a user