GretaThunbergUltras / botlib

Bot Standard Library
https://gretathunbergultras.github.io/botlib/
1 stars 2 forks source link

Why does the bot move backwards on first start? #21

Open lausek opened 4 years ago

lausek commented 4 years ago

Once started, the default motor power is set to -128. This is not inside the expected range of -100...100. Setting the power back to 0 causes an uncontrolled jump backwards.

System configuration

Powerbank: XTPower XT-20000QC3 PiCamera: Raspberry Pi Camera V2.1 Motors: PORT_A, PORT_B, PORT_C, PORT_D Octosonar: v2.2 (S2, S3, S4, S5 attached with HC-SR04)

Hardware check

Checking for hardware, and checking hardware and firmware version.
==================================================================
Manufacturer    :  Dexter Industries
Board           :  BrickPi3
Hardware version:  3.2.1
Firmware version:  1.4.3
Battery voltage :  11.848
9v voltage      :  9.144
5v voltage      :  5.051
3.3v voltage    :  3.336

Hardware after problem is fixed

Checking for hardware, and checking hardware and firmware version.
==================================================================
Manufacturer    :  Dexter Industries
Board           :  BrickPi3
Hardware version:  3.2.1
Firmware version:  1.4.3
Battery voltage :  11.87
9v voltage      :  9.144
5v voltage      :  5.06
3.3v voltage    :  3.348
witling commented 4 years ago

Only happens if the system starts off cold (BrickPi3 switched on). sudo reboot conserves power settings.