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

fixed rc input lag when all pwm outputs are disabled #63

Merged
merged 1 commit into from
Jun 5, 2024
Merged
Changes from all commits
Commits
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
8 changes: 8 additions & 0 deletions src/drivers/voxl2_io/voxl2_io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ Voxl2IO::Voxl2IO() :
_mixing_output.setMaxNumOutputs(VOXL2_IO_OUTPUT_CHANNELS);
_uart_port = new Voxl2IoSerial();
voxl2_io_packet_init(&_voxl2_io_packet);

//set low rate scheduling interval to 200hz so that RC can be updated even if all actuators are disabled
//otherwise, the default low rate scheduling interval is 300ms and RC packets are delayed and lost
_mixing_output.setLowrateSchedulingInterval(5_ms);
}

Voxl2IO::~Voxl2IO()
Expand Down Expand Up @@ -731,6 +735,10 @@ int Voxl2IO::custom_command(int argc, char *argv[])
return get_instance()->calibrate_escs();
}

if (!strcmp(verb,"enable_debug")){
get_instance()->_debug = true;
}

return print_usage("unknown custom command");
}

Expand Down
Loading