123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212 |
- #include <control/controller.h>
- iv::control::Controller::Controller() {
- }
- iv::control::Controller::~Controller() {
- }
- void iv::control::Controller::inialize() {
- }
- //校验和
- void iv::control::Controller::cmd_checksum(unsigned char cmd_id) {
- // ServiceControlStatus.set_cmd_checksum(cmd_id);
- }
- //方向盘控制
- void iv::control::Controller::control_wheel(float angle) {
- ServiceControlStatus.set_wheel_angle(angle);
- }
- void iv::control::Controller:: control_angle_speed(float angSpeed){
- // ServiceControlStatus.set_wheel_speed(angSpeed);
- }
- void iv::control::Controller:: control_angle_enable(bool enable){
- ServiceControlStatus.set_wheel_enable(enable);
- }
- //速度限制
- void iv::control::Controller:: control_speed_limit(float speedLimit){
- // ServiceControlStatus.set_speed_limit(speedLimit);
- }
- //油门控制
- void iv::control::Controller::control_torque(float percent){
- ServiceControlStatus.set_torque(percent);
- }
- void iv::control::Controller::control_acc_en(bool enanble){
- ServiceControlStatus.set_acc_enable(enanble);
- }
- void iv::control::Controller::control_park_en(bool enanble){
- ServiceControlStatus.set_park_enable(enanble);
- }
- void iv::control::Controller::control_brake_en(bool enanble){
- ServiceControlStatus.set_brake_enable(enanble);
- }
- void iv::control::Controller::control_aeb(float aeb){
- // ServiceControlStatus.set_aeb(aeb);
- }
- void iv::control::Controller::control_aeb_en(bool enable){
- // ServiceControlStatus.set_aeb_enable(enable);
- }
- //刹车控制
- void iv::control::Controller::control_brake(float brake){
- ServiceControlStatus.set_brake(brake);
- }
- //档位控制
- void iv::control::Controller::control_gear(float gear){
- ServiceControlStatus.set_gear(gear);
- }
- void iv::control::Controller::control_gear_en(bool enable){
- ServiceControlStatus.set_gear_enable(enable);
- }
- //手刹
- void iv::control::Controller::control_handBrake(bool enable){
- ServiceControlStatus.set_handBrake(enable);
- }
- //驾驶模式
- void iv::control::Controller::control_mode(char mode){
- ServiceControlStatus.set_driveMode(mode);
- }
- //车窗控制
- //void iv::control::Controller::control_win_lf(char para){
- // ServiceControlStatus.set_win_lf(para);
- //}
- //void iv::control::Controller::control_win_rf(char para){
- // ServiceControlStatus.set_win_rf(para);
- //}
- //void iv::control::Controller::control_win_lr(char para){
- // ServiceControlStatus.set_win_lr(para);
- //}
- //void iv::control::Controller::control_win_rr(char para){
- // ServiceControlStatus.set_win_rr(para);
- //}
- //空调控制
- void iv::control::Controller::control_air_on(bool enable){
- // if(enable){
- // ServiceControlStatus.set_air_on(1);
- // }else{
- // ServiceControlStatus.set_air_on(0);
- // }
- }
- //void iv::control::Controller::control_air_cricle(char para){
- // ServiceControlStatus.set_air_cricle(para);
- //}
- //void iv::control::Controller::control_air_auto(char para){
- // ServiceControlStatus.set_air_auto(para);
- //}
- //void iv::control::Controller::control_air_off(char para){
- // ServiceControlStatus.set_air_off(para);
- //}
- //void iv::control::Controller::control_air_temup(char para){
- // ServiceControlStatus.set_air_temup(para);
- //}
- //void iv::control::Controller::control_air_temdown(char para){
- // ServiceControlStatus.set_air_temdown(para);
- //}
- //void iv::control::Controller::control_air_powerup(char para){
- // ServiceControlStatus.set_air_powerup(para);
- //}
- //void iv::control::Controller::control_air_powerdown(char para){
- // ServiceControlStatus.set_air_powerdown(para);
- //}
- //点火控制
- void iv::control::Controller::control_obligate(char para){
- ServiceControlStatus.set_obligate(para);
- }
- //车门控制
- void iv::control::Controller::control_door(char enable){
- ServiceControlStatus.set_door(enable);
- }
- //车灯控制
- void iv::control::Controller::control_turnsignals(bool left, bool right){
- ServiceControlStatus.set_turnsignals_control(left,right);
- }
- void iv::control::Controller::control_small_light(char para){
- ServiceControlStatus.set_small_light(para);
- }
- void iv::control::Controller::control_near_light(char para){
- ServiceControlStatus.set_near_light(para);
- }
- void iv::control::Controller::control_far_light(char para){
- ServiceControlStatus.set_far_light(para);
- }
- void iv::control::Controller::control_frog_light(char para){
- ServiceControlStatus.set_frog_light(para);
- }
- void iv::control::Controller::control_brake_light(char para){
- ServiceControlStatus.set_brake_light(para);
- }
- void iv::control::Controller::control_defrog(char para){
- ServiceControlStatus.set_defrog(para);
- }
- void iv::control::Controller::control_reverse_light(char para){
- ServiceControlStatus.set_reverse_light(para);
- }
- //喇叭控制
- void iv::control::Controller::control_horn(char para){
- ServiceControlStatus.set_horn(para);
- }
- //雨刷控制
- void iv::control::Controller::control_wiper(char para){
- ServiceControlStatus.set_wiper(para);
- }
- void iv::control::Controller::control_air_temp(char para){
- ServiceControlStatus.set_air_temp(para);
- }
- void iv::control::Controller::control_air_mode(char para){
- ServiceControlStatus.set_air_mode(para);
- }
- void iv::control::Controller::control_air_enable(bool enable){
- ServiceControlStatus.set_air_enable(enable);
- }
- void iv::control::Controller::control_wind_level(char para){
- ServiceControlStatus.set_wind_level(para);
- }
- void iv::control::Controller::control_roof_light(char para){
- ServiceControlStatus.set_roof_light(para);
- }
- void iv::control::Controller::control_home_light(char para){
- ServiceControlStatus.set_home_light(para);
- }
- void iv::control::Controller::control_air_worktime(char para){
- ServiceControlStatus.set_air_worktime(para);
- }
- void iv::control::Controller::control_air_offtime(char para){
- ServiceControlStatus.set_air_offtime(para);
- }
- //void iv::control::Controller::control_flicker(bool enable){
- // ServiceControlStatus.set_flicker(enable);
- //}
- //void iv::control::Controller::control_braking(float percent){
- //}
|