Galaxis Codebase
1.0.0
Team Galaxis software stack for the Carolo Cup 2023 - ROS2 based software
cuprules.hpp
Go to the documentation of this file.
1
#ifndef CUPRULES_HPP
2
#define CUPRULES_HPP
3
4
#include "
motorSettings.hpp
"
5
6
namespace
cuprules
{
7
namespace
modes {
8
namespace
training {
9
const
uint8_t
rc_use_erpm
= 0;
10
const
float
erpm_max_rc
=
galaxis::motorSettings::velocityToErpm
(0.6);
11
}
// namespace training
12
13
namespace
free_driving {
14
const
uint8_t
rc_use_erpm
= 1;
15
const
float
erpm_max_rc
=
galaxis::motorSettings::velocityToErpm
(0.3);
16
}
// namespace free_driving
17
18
namespace
obstacle_driving {
19
const
uint8_t
rc_use_erpm
= 1;
20
const
float
erpm_max_rc
=
galaxis::motorSettings::velocityToErpm
(0.3);
21
}
// namespace obstacle_driving
22
}
// namespace modes
23
}
// namespace cuprules
24
25
#endif // CUPRULES_HPP
motorSettings.hpp
cuprules::modes::obstacle_driving::rc_use_erpm
const uint8_t rc_use_erpm
Definition:
cuprules.hpp:19
cuprules::modes::free_driving::rc_use_erpm
const uint8_t rc_use_erpm
Definition:
cuprules.hpp:14
cuprules
Definition:
cuprules.hpp:6
cuprules::modes::training::erpm_max_rc
const float erpm_max_rc
Definition:
cuprules.hpp:10
galaxis::motorSettings::velocityToErpm
float velocityToErpm(float const p_velocity)
Definition:
motorSettings.cpp:9
cuprules::modes::obstacle_driving::erpm_max_rc
const float erpm_max_rc
Definition:
cuprules.hpp:20
cuprules::modes::training::rc_use_erpm
const uint8_t rc_use_erpm
Definition:
cuprules.hpp:9
cuprules::modes::free_driving::erpm_max_rc
const float erpm_max_rc
Definition:
cuprules.hpp:15
utilities
include
galaxis
cuprules.hpp
Generated by
1.8.17