Skip to content

Commit

Permalink
Fix RSSI in on FMUv4 (pixracer)
Browse files Browse the repository at this point in the history
  • Loading branch information
svpcom authored and David Sidrane committed Mar 11, 2019
1 parent 2773fe6 commit f8c50f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion boards/px4/fmu-v4/src/init.c
Expand Up @@ -206,7 +206,6 @@ stm32_boardinitialize(void)

// Safety - led on in led driver.
stm32_configgpio(GPIO_BTN_SAFETY);
stm32_configgpio(GPIO_RSSI_IN);
stm32_configgpio(GPIO_PPM_IN);

int spi_init_mask = SPI_BUS_INIT_MASK;
Expand Down
4 changes: 4 additions & 0 deletions src/drivers/rc_input/RCInput.cpp
Expand Up @@ -795,6 +795,10 @@ int RCInput::print_status()
PX4_INFO("CRSF Telemetry: %s", _crsf_telemetry ? "yes" : "no");
PX4_INFO("SBUS frame drops: %u", sbus_dropped_frames());

#if ADC_RC_RSSI_CHANNEL
PX4_INFO("vrssi: %dmV", (int)(_analog_rc_rssi_volt * 1000.0f));
#endif

perf_print_counter(_cycle_perf);
perf_print_counter(_publish_interval_perf);

Expand Down

0 comments on commit f8c50f4

Please sign in to comment.