add throttles back. radio power lvl
This commit is contained in:
parent
6abf3028c8
commit
a9cd5e971f
|
|
@ -8,9 +8,7 @@
|
|||
#include "drone_controller.h"
|
||||
|
||||
#include "dshot_definitions.h"
|
||||
#include "esp32-hal.h"
|
||||
#include "esp_log.h"
|
||||
#include "freertos/FreeRTOS.h"
|
||||
#include "esp32-hal.h" #include "esp_log.h" #include "freertos/FreeRTOS.h"
|
||||
#include "freertos/idf_additions.h"
|
||||
#include "freertos/projdefs.h"
|
||||
#include "freertos/task.h"
|
||||
|
|
@ -123,8 +121,7 @@ void motor_throttles_task(void *params) {
|
|||
if (atomic_load(&killswitch_active)) {
|
||||
throttle = 0.0;
|
||||
}
|
||||
// motors[i]->sendThrottlePercent(motor_throttles[i] * 100.0f * 0.7f);
|
||||
motors[i]->sendThrottlePercent(10.0f);
|
||||
motors[i]->sendThrottlePercent(motor_throttles[i] * 100.0f * 0.7f);
|
||||
}
|
||||
vTaskDelay(2);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -59,6 +59,7 @@ void radio_task(void *pvParameters) {
|
|||
RFM69 radio(RFM69_CS, RFM69_INT, true, &hspi);
|
||||
|
||||
if (radio.initialize(FREQUENCY, NODEID, NETWORKID)) {
|
||||
radio.setPowerLevel(31);
|
||||
radio.setHighPower(true);
|
||||
radio.setCustomBitrate(DEFAULT_COMMS_BITRATE);
|
||||
ESP_LOGI(TAG, "Radio Initialized. Version: 0x%02X", radio.readReg(0x10));
|
||||
|
|
|
|||
Loading…
Reference in New Issue