-
Notifications
You must be signed in to change notification settings - Fork 25
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
Manual Speed #65
Comments
Nice to see that you want to build a more useful Arduino software. But I do understand the purpose of this script language. Thank you anyway for staying committed to gen2 hoverboards :-) |
@RoboDurden I think I implement the delays that were in the autospeed incorrectly. Seems I am transmitting the packets to quickly and it is not giving time for the responses from the mcu to be received/processed. Can you explain the logic of how the delays in autospeed work? |
as you get better you will understand you should not use delay actually on esp32 you can use delay because there is rtos on esp it can do multitask but it complicates things as of now you are still sending commands to 2 slave without delay in between so they reply together and croupt the signal |
Autospeed ? There are no delay() in my testspeed.ino If you have problems with @AILIFE4798 see that remoteUart is simpler to use for most scenarios. If board has a second uart :-/ |
in latest update v129 constant speed work much better now |
he send to all slaves without delay, only delay between sends, so slave reply together
no remote uart cannot spin 2 wheel at different speed as of now so totaly useless for most project but i know it can be easily implemented |
Is there a way to force the esp32 to wait for response and if no response is received after X then send the next packet? Or can i use 1 UART serial on the esp32 to receive and use the other one to transmit aka serial 1 and serial 2? |
Only with UartBus do you need to wait for response.. and do whatever you want if millis() > iTimeNoResonse |
@RoboDurden Are you say that uartbus is not necessary? Is uart bus only necessary when multiple masters are desired, but because there is only 1 esp32 we don't need uartbus? |
RemoteUart needs a dedicated Uart for the one master (who controls a slave) or one single. |
What is the advantage to controller (esp32)->master->slave in comparison to just controlling everything with the controller? |
UartBus is my "invention" and came longer after the Masters-Slave code. |
@RoboDurden just wanted to let you know I started creating a manual speed esp32 script based off of your speedtest
https://github.com/reed-dan/hoverboard_hack_esp32_manualspeed
Currently it allows for control via serial with commands like
hover|all|500|1
hover|right|500|1
hover|left|500|1
hover|1|500|1
stop
The text was updated successfully, but these errors were encountered: