Version upgrade 4.00 #45

Merged
elB4RTO merged 113 commits from devel into main 2024-02-17 16:13:26 +01:00
2 changed files with 3 additions and 5 deletions
Showing only changes of commit 8c179a05ce - Show all commits

View file

@ -440,7 +440,7 @@ Direction Snake::predictDirection( const std::array<std::array<float,7>,4>& data
{
float results[]{ 1.f, 1.f, 1.f, 1.f };
bool keep_current{ false };
Direction class_label;
Direction class_label{ this->head_direction };
// process data
for ( size_t i{0}; i<4ul; ++i ) {
@ -473,9 +473,7 @@ Direction Snake::predictDirection( const std::array<std::array<float,7>,4>& data
}
// choose the best result
if ( keep_current ) {
class_label = this->head_direction;
} else {
if ( ! keep_current ) {
max = 0.f;
for ( size_t i{0}; i<4ul; ++i ) {
if ( results[i] > max ) {

View file

@ -42,7 +42,7 @@ inline bool operator>=(const DialogsLevel lhs, const DialogsLevel rhs)
inline std::string toString(const WebServer ws) noexcept
inline std::string toString(const WebServer ws)
{
switch (ws) {
case WebServer::Apache: