flight controller command set only when received

This commit is contained in:
vivek-shankar 2016-12-23 17:56:14 -05:00
parent 53d400da27
commit be5bd79e16
1 changed files with 1 additions and 0 deletions

View File

@ -194,6 +194,7 @@ int buzzuav_update_flight_status(buzzvm_t vm) {
buzzvm_pushi(vm, rc_cmd); buzzvm_pushi(vm, rc_cmd);
buzzvm_tput(vm); buzzvm_tput(vm);
buzzvm_dup(vm); buzzvm_dup(vm);
rc_cmd=0;
buzzvm_pushs(vm, buzzvm_string_register(vm, "status", 1)); buzzvm_pushs(vm, buzzvm_string_register(vm, "status", 1));
buzzvm_pushi(vm, status); buzzvm_pushi(vm, status);
buzzvm_tput(vm); buzzvm_tput(vm);