Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AP_HAL_ESP32 mega new feature branch - with AP_Periph support, CAN drivers, generated hwdef.h from hwdef.dat support and more #28514

Open
wants to merge 41 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
89a0548
AP_Airspeed: needs HAL_GCS_ENABLED define when building for periph on…
davidbuzz Nov 2, 2024
6cc8c8f
AP_Baro: sometimes HAL_BARO_ALLOW_INIT_NO_BARO is redefined when buil…
davidbuzz Nov 2, 2024
5182ad5
AP_Common: WARN_IF_UNUSED prevent redefining on esp32
davidbuzz Nov 2, 2024
ffb8531
AP_Compass: was using HAL_MAVLINK_BINDINGS_ENABLED in the .h but not …
davidbuzz Nov 2, 2024
cfb3c91
AP_Filesystem: esp32 doesn't define this in some builds but needs it
davidbuzz Nov 2, 2024
c25df6a
AP_Frsky_Telem: missing HAL_GCS_ENABLED wrapper for gcs() object , af…
davidbuzz Nov 2, 2024
a0d03a0
AP_HAL_Empty: make constructors the same shape as chibios and esp32 …
davidbuzz Nov 2, 2024
063c24e
AP_HAL: bring in 3 more esp32 board definitions for buzz's s3 variant…
davidbuzz Nov 2, 2024
4d2b1a3
AP_InertialSensor: dont trigger reset on esp32 boards as we loose wif…
davidbuzz Nov 2, 2024
a896b9e
AP_Logger: always start a new log on boot
davidbuzz Nov 2, 2024
7668869
AP_NavEKF3: make not-enough-memory error print the calculated usage
davidbuzz Nov 2, 2024
f44150e
AP_Volz_Protocol: missing header AP_Math.h for constrain_float
davidbuzz Nov 2, 2024
7abfa75
GCS_MAVLink: mav_ftp - allow defining stack size externally for diff…
davidbuzz Nov 2, 2024
33070e3
StorageManager: make error explicit about need for HAL_STORAGE_SIZE t…
davidbuzz Nov 2, 2024
cc09cf1
wscript - set PERIPH_FW to 1 during prebuild
davidbuzz Nov 2, 2024
2e4177c
AP_BoardConfig: note that this needs HAL_GCS_ENABLED to actually print
davidbuzz Nov 2, 2024
c9b2b1f
Tools: esp32 periph builds and esp32s3 builds fixes
davidbuzz Nov 2, 2024
1a3bd4b
Tools: esp32s3 scripts to demonstrate common build/debug on esp32s3
davidbuzz Nov 2, 2024
8c5851e
Tools: adjust configure_all.py to optionally do esp32 with --esp32
davidbuzz Nov 2, 2024
99ecbe0
AP_Notify: allow number of neopixels to be defined elsewhere eg esp32
davidbuzz Nov 2, 2024
3831b52
AP_HAL_ESP32: older esp32 board defns need HAL_UART_NUM_SERIAL_PORT…
davidbuzz Nov 2, 2024
87fdb54
AP_HAL_ESP32: add some reference docs and more s3 specific README ma…
davidbuzz Nov 2, 2024
63f9e9d
AP_HAL_ESP32: uncontrovertial HAL fixes and new CAN driver and i2c r…
davidbuzz Nov 2, 2024
18b8869
AP_HAL_ESP32: esp32s3buzz and esp32s3buzz_periph board variants show…
davidbuzz Nov 2, 2024
bf1637d
AP_HAL_ESP32: buzz's classic esp32 board needs a few minor upgrades
davidbuzz Nov 2, 2024
2b5ba5e
AP_HAL_ESP32: unused scripts that we might use or derive from in the …
davidbuzz Nov 2, 2024
9e0ada6
AP_HAL_ESP32: UART driver tweaks and making closer in shape to chibios
davidbuzz Nov 2, 2024
b02bc22
AP_HAL_ESP32: make scheduler headers more consistent and with chibios
davidbuzz Nov 2, 2024
7aea548
AP_HAL_ESP32: SDCARD driver support gpio matrix or default - todo ma…
davidbuzz Nov 2, 2024
2f86e14
AP_HAL_ESP32: sneak the scheduler Stack Sizes values down to smaller…
davidbuzz Nov 2, 2024
a160d15
AP_Compass: honour AP_COMPASS_ENABLED more
davidbuzz Nov 4, 2024
6ac875c
AP_HAL: disable a bunch of subsystems on Periph or it wont link
davidbuzz Nov 4, 2024
09d5e44
AP_NavEKF3: bugfix commit and some docs update and wip harmless othe…
davidbuzz Nov 4, 2024
51c6bd8
AP_Scripting: periph on esp32 linker fix
davidbuzz Nov 4, 2024
37c0ee5
Tools: make periph can driver incapable of dividing by zero and esp…
davidbuzz Nov 4, 2024
76ef157
AP_HAL_ESP32: boards changes
davidbuzz Nov 4, 2024
461e59b
AP_HAL_ESP32: docs updated
davidbuzz Nov 4, 2024
ddf8f32
AP_HAL_ESP32: driver adjustments
davidbuzz Nov 4, 2024
1c7f854
AP_HAL_ESP32: namespace changes
davidbuzz Nov 4, 2024
e0d3153
AP_HAL_ESP32: CmakeLists support for periph
davidbuzz Nov 4, 2024
6a2a23c
AP_HAL_ESP32: expanding python genertor with more s3 capabilities
davidbuzz Nov 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
AP_Frsky_Telem: missing HAL_GCS_ENABLED wrapper for gcs() object , af…
…fecting esp32 periph
  • Loading branch information
davidbuzz committed Nov 4, 2024
commit c25df6adc37807769be3f451b2d1bbff29c46cff
2 changes: 2 additions & 0 deletions libraries/AP_Frsky_Telem/AP_Frsky_D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ void AP_Frsky_D::send(void)
if (now - _D.last_200ms_frame >= 200) {
_D.last_200ms_frame = now;
send_uint16(DATA_ID_TEMP2, (uint16_t)(AP::gps().num_sats() * 10 + AP::gps().status())); // send GPS status and number of satellites as num_sats*10 + status (to fit into a uint8_t)
#if HAL_GCS_ENABLED
send_uint16(DATA_ID_TEMP1, gcs().custom_mode()); // send flight mode
#endif
uint8_t percentage = 0;
IGNORE_RETURN(_battery.capacity_remaining_pct(percentage));
send_uint16(DATA_ID_FUEL, (uint16_t)roundf(percentage)); // send battery remaining
Expand Down
2 changes: 2 additions & 0 deletions libraries/AP_Frsky_Telem/AP_Frsky_SPort.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ void AP_Frsky_SPort::send(void)
send_sport_frame(SPORT_DATA_FRAME, TEMP2_ID, (uint16_t)(AP::gps().num_sats() * 10 + AP::gps().status())); // send GPS status and number of satellites as num_sats*10 + status (to fit into a uint8_t)
break;
case 1:
#if HAL_GCS_ENABLED
send_sport_frame(SPORT_DATA_FRAME, TEMP1_ID, gcs().custom_mode()); // send flight mode
#endif
break;
}
if (++_SPort.various_call > 1) {
Expand Down