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

Yboichuk/app/radio controller #71

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

black-ghost-off
Copy link
Collaborator

App for controll some thing like rc drone, car, plane, ship, etc. via lilka with SBUS. Just need transiver and reciever with SBUS

@and3rson and3rson force-pushed the main branch 2 times, most recently from e17861d to d9904e9 Compare March 28, 2024 16:12
@and3rson and3rson added enhancement New feature or request scope:keira test Test on real hardware needed labels Apr 10, 2024

// TODO: add support for ibus, CRSF and other

bfs::SbusTx sbus_tx(&Serial2, -1, 12, false);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Потрібно десь при запуску програми або в якомусь меню "Інформація" відображати інфо про те, який пін задіяний. Або може навіть варто створити нову сторінку в нашій документації, де описувати мануали всіх програм, які ми пишемо для Кіри

}

bool RadioControllApp::readSettings() {
FILE* file = fopen("/sd/RadioContollSetting.csv", "r");
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Добре б якусь коротшу назву, щоб вміщалась в браузері файлів і не скролилась, наприклад rc_config.csv


int lineNum = 0;
char line[100];
while (fgets(line, sizeof(line), file)) {
Copy link
Owner

@and3rson and3rson Apr 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Можна використати ArduinoJson, він в нас вже є в залежностях. Приклад:


JsonDocument data(&spiRamAllocator);

DeserializationError error = deserializeJson(data, http.getString());


temp = data["current"]["temperature_2m"];
wind = data["current"]["wind_speed_10m"];
uint8_t code = data["current"]["weather_code"];

@and3rson and3rson force-pushed the main branch 2 times, most recently from 4563cc8 to 14a952c Compare April 17, 2024 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request scope:keira test Test on real hardware needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants