#include <AP_Proximity_LightWareSF40C.h>
|
void | set_status (AP_Proximity::Proximity_Status status) |
|
bool | convert_angle_to_sector (float angle_degrees, uint8_t §or) const |
|
void | init_boundary () |
|
void | update_boundary_for_sector (uint8_t sector) |
|
uint8_t | get_ignore_area_count () const |
|
bool | get_ignore_area (uint8_t index, uint16_t &angle_deg, uint8_t &width_deg) const |
|
bool | get_next_ignore_start_or_end (uint8_t start_or_end, int16_t start_angle, int16_t &ignore_start) const |
|
AP_Proximity & | frontend |
|
AP_Proximity::Proximity_State & | state |
|
uint8_t | _num_sectors = PROXIMITY_MAX_DIRECTION |
|
uint16_t | _sector_middle_deg [PROXIMITY_SECTORS_MAX] = {0, 45, 90, 135, 180, 225, 270, 315, 0, 0, 0, 0} |
|
uint8_t | _sector_width_deg [PROXIMITY_SECTORS_MAX] = {45, 45, 45, 45, 45, 45, 45, 45, 0, 0, 0, 0} |
|
float | _angle [PROXIMITY_SECTORS_MAX] |
|
float | _distance [PROXIMITY_SECTORS_MAX] |
|
bool | _distance_valid [PROXIMITY_SECTORS_MAX] |
|
Vector2f | _sector_edge_vector [PROXIMITY_SECTORS_MAX] |
|
Vector2f | _boundary_point [PROXIMITY_SECTORS_MAX] |
|
◆ RequestType
Enumerator |
---|
RequestType_None | |
RequestType_Health | |
RequestType_MotorSpeed | |
RequestType_MotorDirection | |
RequestType_ForwardDirection | |
RequestType_DistanceMeasurement | |
Definition at line 27 of file AP_Proximity_LightWareSF40C.h.
◆ AP_Proximity_LightWareSF40C()
◆ check_for_reply()
bool AP_Proximity_LightWareSF40C::check_for_reply |
( |
| ) |
|
|
private |
◆ clear_buffers()
void AP_Proximity_LightWareSF40C::clear_buffers |
( |
| ) |
|
|
private |
◆ detect()
◆ distance_max()
float AP_Proximity_LightWareSF40C::distance_max |
( |
| ) |
const |
|
virtual |
◆ distance_min()
float AP_Proximity_LightWareSF40C::distance_min |
( |
| ) |
const |
|
virtual |
◆ init_sectors()
void AP_Proximity_LightWareSF40C::init_sectors |
( |
| ) |
|
|
private |
◆ initialise()
bool AP_Proximity_LightWareSF40C::initialise |
( |
| ) |
|
|
private |
◆ process_reply()
bool AP_Proximity_LightWareSF40C::process_reply |
( |
| ) |
|
|
private |
◆ request_new_data()
void AP_Proximity_LightWareSF40C::request_new_data |
( |
| ) |
|
|
private |
◆ send_request_for_distance()
bool AP_Proximity_LightWareSF40C::send_request_for_distance |
( |
| ) |
|
|
private |
◆ send_request_for_health()
void AP_Proximity_LightWareSF40C::send_request_for_health |
( |
| ) |
|
|
private |
◆ set_forward_direction()
void AP_Proximity_LightWareSF40C::set_forward_direction |
( |
| ) |
|
|
private |
◆ set_motor_direction()
void AP_Proximity_LightWareSF40C::set_motor_direction |
( |
| ) |
|
|
private |
◆ set_motor_speed()
void AP_Proximity_LightWareSF40C::set_motor_speed |
( |
bool |
on_off | ) |
|
|
private |
◆ update()
void AP_Proximity_LightWareSF40C::update |
( |
void |
| ) |
|
|
virtual |
◆ _flags
struct { ... } ::PACKED AP_Proximity_LightWareSF40C::_flags |
◆ _forward_direction
int16_t AP_Proximity_LightWareSF40C::_forward_direction = 999 |
|
private |
◆ _last_distance_received_ms
uint32_t AP_Proximity_LightWareSF40C::_last_distance_received_ms |
|
private |
◆ _last_request_ms
uint32_t AP_Proximity_LightWareSF40C::_last_request_ms |
|
private |
◆ _last_request_type
enum RequestType AP_Proximity_LightWareSF40C::_last_request_type |
|
private |
◆ _last_sector
uint8_t AP_Proximity_LightWareSF40C::_last_sector |
|
private |
◆ _motor_direction
uint8_t AP_Proximity_LightWareSF40C::_motor_direction = 99 |
|
private |
◆ _motor_speed
uint8_t AP_Proximity_LightWareSF40C::_motor_speed |
|
private |
◆ _request_count
uint8_t AP_Proximity_LightWareSF40C::_request_count |
|
private |
◆ _sector_initialised
bool AP_Proximity_LightWareSF40C::_sector_initialised = false |
|
private |
◆ _sensor_status
union { ... } AP_Proximity_LightWareSF40C::_sensor_status |
◆ element_buf
char AP_Proximity_LightWareSF40C::element_buf[2][10] |
|
private |
◆ element_len
uint8_t AP_Proximity_LightWareSF40C::element_len[2] |
|
private |
◆ element_num
uint8_t AP_Proximity_LightWareSF40C::element_num |
|
private |
◆ flat_battery
uint16_t AP_Proximity_LightWareSF40C::flat_battery |
◆ ignore_reply
bool AP_Proximity_LightWareSF40C::ignore_reply |
|
private |
◆ laser_fault
uint16_t AP_Proximity_LightWareSF40C::laser_fault |
◆ low_battery
uint16_t AP_Proximity_LightWareSF40C::low_battery |
◆ major_system_abnormal
uint16_t AP_Proximity_LightWareSF40C::major_system_abnormal |
◆ motor_dir
uint16_t AP_Proximity_LightWareSF40C::motor_dir |
◆ motor_fault
uint16_t AP_Proximity_LightWareSF40C::motor_fault |
◆ motor_stopped
uint16_t AP_Proximity_LightWareSF40C::motor_stopped |
◆ no_results_available
uint16_t AP_Proximity_LightWareSF40C::no_results_available |
◆ power_saving
uint16_t AP_Proximity_LightWareSF40C::power_saving |
◆ spare_input
uint16_t AP_Proximity_LightWareSF40C::spare_input |
◆ system_restarting
uint16_t AP_Proximity_LightWareSF40C::system_restarting |
◆ torque_control
uint16_t AP_Proximity_LightWareSF40C::torque_control |
◆ uart
◆ unused1
uint16_t AP_Proximity_LightWareSF40C::unused1 |
◆ unused2
uint16_t AP_Proximity_LightWareSF40C::unused2 |
◆ user_flag1
uint16_t AP_Proximity_LightWareSF40C::user_flag1 |
◆ user_flag2
uint16_t AP_Proximity_LightWareSF40C::user_flag2 |
◆ value
uint16_t AP_Proximity_LightWareSF40C::value |
◆ wait_for_space
bool AP_Proximity_LightWareSF40C::wait_for_space |
|
private |
The documentation for this class was generated from the following files: